Jump to content

yong

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Everything posted by yong

  1. yeah ,but in my opinion ,the script's path is "/test/demo.php" but the $_SERVER['SCRIPT_NAME'] is print "/php/php.exe". so it's wrong,i think.
  2. i look some codes like : $PHP_SELF = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']; when i test in my computer like <?php var_dump($_SERVER['PHP_SELF']); var_dump($_SERVER['SCRIPT_NAME']); ?> is was print :string(14) "/test/demo.php" string(12) "/php/php.exe"; just like you see the both are not same. so i want to know ...why? why the $_server['script_name'] and the $_server['php_self'] are different? thinks..
  3. i look other's code found some code like "$bar =& new fooclass()"; i cann't understand the '&' meaning? what is the differentce between "$bar =& new fooclass()" and "$bar =new fooclass()";? thank you very much~.....:)
  4. i understand this think you very much btherl ..:)
  5. this is my test code [code] <?php var_dump('1' >'a');//bool(false) var_dump('97'>'a');//ASCⅡ a->97//bool(false) var_dump('97'<'a');//bool(true) var_dump('98'>'a');//bool(false) ?> [/code] i want to know why? why i can receive this result? what is they compare with eachother's standard? my english is very poor ,i am chinese if you can't understand hat i said ,please reaply to me? think you very much
  6. no. i just want to understand about the function pack,and how to use it in the practice......:) i can't find what i want by the php manual..
  7. hi guys  i  have a question ,how to use pack? i look the manual but have any help.... so i want to answer ones who used it . if you can  give me some demo,that is perfect... think you very much!
  8. hi guys ,thinks for your help........:) i look others code ,i find in there code first ,they write some code like "set_magic_quotes_runtime(0);" i look the manual,and did't anderstand what it say,so............. please tell  me how to use  "set_magic_quotes_runtime()" and in what instance we use it.... think you very much..
  9. hi localhost i also want to do something about count user online,i look yours script ,i have a question .. like here:"$UsersOnline = Query("Select * From `users` Where `LastActive` >= '" . $FiveMinutes . "'");" what is "lastActive" and how can you control it? thanks... 
  10. Gruzin ,can you write the url about what do you found..
  11. thank you btherl... i just want to know how curl is Perform...? as everyone sees my english is very poor ,so if any one can't anderstand my idea,please tell me ....think u.
  12. i  have many questions about curl( Client URL Library Functions),i read the manual about curl. i can understand how to use the function like curl_init() ,curl_setopt() ,curl_exec(),etc...but i do't know why we do this ,what's his deep purpose ? thank you very much to answer my question.....:)
  13. i only see the underside code i say other question about your write if you write trimness others see your code will feel bettor you say? :) [b]<select name="to_id" id="to_id"> <?php $query = "SELECT name, id FROM membership WHERE status='Y' and name like '$a%' ORDER BY name "; $result = mysql_query($query) or die(mysql_error()); if (mysql_num_rows($result) !=0) { while($row = mysql_fetch_array($result)) { extract($row); echo "<option value=\"$id\">$name</option>"; } #while } ?> </select>[/b] because [b]$to_id = strtolower(mysql_escape_string(trim(strip_tags($_POST['to_id']))));[/b] so the [b]$_POST['to_id'][/b] must have value
  14. please upload your code may some can help you :)
  15. " Why can I not access the results array twice in the same page??" you cant access the results array twice in the same page because the "key" i dot know i say so is nicety or not in the memory it's has a key to point to the results and if you read one she will move next read one ,move next like this until the last one so if you read one you will not read that again unless you control the "key"
  16. i only say my thinking.... Colin1388's method like "loginname=$loginname and password=$password" is not safe.... i think the username is not repeat...when someone register their information you must dispost the repeat one about SQL syntax i often use PHPMYADMIN is a good tool you can write SQL then exec that in PHPMYADMIN the use information will show for you .... my english is very poor i wish you can understand what i say...
  17. i have a small question : This line: "$old = time() - 15778463; /* 6 months ago */" how calculate 15778463... think you !
  18. thorpe. bilis_money think you vary much ... i will often come here studry toward you think you !!! my english is so poor help me my God!!!
  19. i always use resource in php like connect database,open file etc but i don't know the resource deeply mean? i need some help thank you very much i am chinese welcome to my country! my email is gyong@hotmail.com
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.