Jump to content

gongpex

Members
  • Posts

    360
  • Joined

  • Last visited

Everything posted by gongpex

  1. I was said before, if I plan to use it only for myself, because ISP on my country really bad(I often disconnected from connection or connection very slow) I don't live on UK Thanks for answer, But I need more answer that more clear...
  2. gongpex

    PHP browser close

    Q : So if I using 2 session like this : <?php//this session for "temporary" datasession_start();if($_SESSION['mydata']){$test = "Welcome";}else{$test = "Bye";} //this is session for "user" data (this is not for auto log off)session_start();if(!$_SESSION['user']){$post = mysql_query("delete from user where name='user'");}else{echo"$post";}?> are prohibited? thanks
  3. Hello everyone, I think I must provide own internet connection, Because my ISP's service is very bad, I often disconnected and even I often lost internet connection, I'll try to ping, but it still same Q : What I must do so that I can provide own internet connection on my home? Q : Should I buy server or etc? Please tell me Many thanks
  4. gongpex

    PHP browser close

    Sorry for late reply, my internet connection was got trouble lately. Q : So, in short I should create session for my data same as when I made login form?(from the first step till complete) (Because last night I had try to create it on my file but after the session run, it can't be destroyed (using session_destroy()), and, though I close my browser, it still run (the session still exist)) Thanks____________________________________________________________________________________________ OFF Q : By the way how many language that you can speak besides English?
  5. gongpex

    PHP browser close

    Q : So session is more good than cookies? (because some browser not support cookie) Q : In other word I should create session for visitor? thanks
  6. gongpex

    PHP browser close

    Q : Though user forgot to click "Sign Out" ? Q : So they create session though there is no user who login? Thanks for answer
  7. gongpex

    PHP browser close

    if I using date() or time() as system timeout, it's must be wait till it has reached the time that set out, of course to run the php code. (I ever test about auto delete on hubert.com, I deliberate to buy something till the basket shown $1.25 , and then I close my browser. But when I open it again, the product on basket had back to $0) Q : Is they using the "Timeout System" ? Thanks for answer.
  8. gongpex

    PHP browser close

    Hello everyone, I had looking on google about how to delete php session or database after browser closed, I found it, but it must using ajax or javascript, to tell server to delete or set data so that it can logout or delete some feature, automatically after browser closed. My question : if browser disable javascript, Is it still can run that php code? Please the answer Many Thanks
  9. Long time I didn't tried this code, and today I had tried it : <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^(.*)\.php$ $1 [nc]</IfModule> But it cause "Object not found" when I open for example : http://localhost/test/index Please help me Thanks
  10. Hello everyone, I want to collect vote from all of you about these things : 1) Money2) Game3) Computer4) Book5) Entertainment6) Vacation7) Food8) Other (please tell) From all of these things on above, please give me at least 2 thing that you like. Please vote this Many Thanks
  11. I think on simple XML the example is clear for me But can I create link page using XML? for example : usually when we open link 'register' , when we saw it on 'view page source' (on chrome browser) like this : <a href="www.example.com/register">Register</a> but can I made it become: <a href="www.example.com/viewApplication-Register">Register</a> and the destination of link can give same results. Because I ever saw it on some website that using Intershop Enfinity Suite Sorry if maybe my question rather confuse But I just want to now what can I do with xml Thanks for answer
  12. gongpex

    About ISP

    Wow, that very fast, my average speed is 53 Kb/s, and maximum is only 100 Kb/s (this is seldom) and sometime if there is trouble it's down till 16 Kb/s or disconnected from connection And I pay every month only USD 5.5 (converted based on my country currency) Thanks for answer, maybe if I have a lot of money I will move to other country that have better ISP. ____________________________________________________________________________________ What's your occupation?
  13. Hello Everyone, How to work on PHP using XML? (please give some example) I think many person work on PHP using XHTML. I rather confuse with XML, because though on google, I didn't found XML example that clear and easy to be learned Please someone tell me Thanks
  14. gongpex

    About ISP

    Hello Everyone, How much you all maximum limit speed of your internet connection in your country? ISP on my country don't have good quality connection, I often disconnected from connection. (if you all not objection, how much you pay your ISP every month? (please convert it to USD) Thanks
  15. Thanks for answer, So, in other word I better buy SSL certificate, than create it own? please the answer Thanks ____________________________________________________________________________ what's all of you occupation?
  16. Hi, I had open your recommended site, but it redirect to : http://searchremagnified.com/?pid=9PO1I57HM&dn=owsap.org&p_bkt=90&kwrf=http%3A%2F%2Fw3schools.invisionzone.com%2Findex.php%3Fshowtopic%3D44698 There is another source that I can got to prevent site from hack? Please tell me Thanks
  17. Hello everyone, SSL certificate of course I need to buy it, But currently I have plan to hosting my site on free web hosting, Can I create own SSL certificate using apache? please someone told me Thanks
  18. So I just move my work (code) to hosting on development server, then I test it , whether it's run or not right? Thanks for answer____________________________________________________________________________________ By the way , basedon topic : http://w3schools.invisionzone.com/index.php?showtopic=44722 , how to prevent site from hacked? I use mysql_real_escape_string to prevent it from sql injection, but, Is there another trick to prevent site from hacking?(make our site more secure) please give me advice once again thanks.
  19. Hello everyone, I'm work currently using php version 5.1.2, But yesterday I ask on to my web hosting, what version of PHP that supported by them, They answer to me if they support only php version : 4.4.2 and version : 5.3.1 My work already created on php version 5.1.2, should I create my work again on version 5.3.1? if no need to create again, which setting that I must be choosed, 4.4.2 or 5.3.1? Please told me. Thanks
  20. This is not for email address but for phone number, I'm worried if there is user who ignorant and tried to input data like example on above So, what I must do so that only "Digit" that allowed to pass, and if "letter" not allowed? That's my purpose please help Thanks________________________________________________________________________________________ What's your occupation?
  21. Hello everyone, I tried to combine preg_match() on beginning (^) and the end($) but the result is still not true, this is all of my code that I had tried : $save_email ="abcdefg01345";if(!preg_match("/[0-9]$/i",$save_email)&&$save_email!=""){$warn14 = "<div style=\"color:red;font-size:9px\">Email should be contain "@"</div>";} This warn didn't works, but if $save_email ="012345abcdef"; the warn would be works again : $save_email="01234abcdef";if(!preg_match("/^[0-9]/i",$save_email)&&$save_email!=""){$warn14 = "<div style=\"color:red;font-size:9px\">Email should be contain "@"</div>";} same too, the warn didn't work, but if $save_email ="abcdefg01345"; the warn would be works and this is fatal error : $save_email="(everything whether a-z and 0-9)";if(!preg_match("/^[0-9]$/i",$save_email)&&$save_email!=""){$warn14 = "<div style=\"color:red;font-size:9px\">Email should be contain "@"</div>";} This cause warn running, even if $save_email="012345679", the result warn still running Note : I had tried without using /i character but the result are still same. I don't know what I must do now please help me Thanks
  22. Table? Did you mean : <table></table> (html table?) please help Thanks
  23. Hello everyone, I tried to show all of my data using while and for function like this code : <?$sel = mysql_query("select * from book");$bk_array = mysql_fetch_array($sel);$b_id = $bk_array[id];$b_title = $bk_array[bk_title];$b_price = $bk_array[bk_price];$b_img = $bk_array[bk_img];$b_list = mysql_num_rows($sel); // total product?><?$x=0;while($product=mysql_fetch_row($sel)){$a[$x][0] = $product[0]; //id$a[$x][1] = $product[5]; //title$a[$x][2] = $product[11]; //price$a[$x][3] = $product[13]; //img$x++;}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Our Product</title><link href="admin/adm-index.css" rel="stylesheet" type="text/css" /></head><body><?for($y=0;$y<$b_list;$y++){echo"<div align=\"center\"><ul type=\"square\"> <li><div align=\"center\"><img src=\"".$a[$y][3]."\" width=\"auto\" height=\"auto\" /></div></li> <li>Book Title : ".$a[$y][1]."</li> <li>Book Price : <strong>".$a[$y][2]."</strong></li></ul><br /></div>";}?></body></html> When I check using command like this : <?echo"".$a[1][1]."";?> it can display data But when I check using : <?echo"".$a[0][1]."";?> It won't show anything, Usually for function always display data start from 0, but on my case it display data start from 1, What I must do? Please someone help me Thanks
  24. Hello everyone, I had tried to rewrite my web page address using .htaccess file, and this the code: RewriteEngine onRewriteRule ^(.*)\php$ $1. [nc] But, it shown "server error 500", What the mistake on my .htacess file code? Note : I looking from google I often found code like this : RewriteEngine onRewriteRule ^(.*)\.htm$ $1.php [nc] But it's not useful. I want to rewrite from : localhost/test/index.php to localhost/test/index please someone help me Thanks
  25. I found php_mysqli.dll on folder extension, About this step I didn't understand, what the mean of uncommenting? please answer Thanks
×
×
  • Create New...