Jump to content

yong

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

yong's Achievements

Newbie

Newbie (1/5)

0

Reputation

  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
×
×
  • 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.