PHP ʖ²ἯTH º󍋼/A Ղ 50. ʹӃ PHP ±¾½ڻ㼯KģԚд PHP ½ű¾ʱŶµ½µĴ󶠊þ•¨´펳¡£ function myfunc($argument) {echo $argument + 10;} $variable = 10; echo "myfunc($variable) = ". myfunc($variable); pre ?php echo "This should be the first line.";? ?php echo "This should show up after the new line above.";? /pre foreach ($_POST as $var = $value) {echo "$var = $value br \n";} ʗψ¿´¿´ addslashes() º¯ʽ¡£˼սʇ׶բ¼þʂµġ£ͬѹҲ¿´¿´ģµĊ php.ini ΄¼þ֐µĠ magic_quotes_gpc ѡϮ¡£ function myfunc($argument) {echo $argument + 10;} $variable = 10; echo "myfunc($variable) = ". myfunc($variable); pre ?php echo "This should be the first line.";? ?php echo "This should show up after the new line above.";? /pre 5. Βµõ½ϻϢ¡°Warning: Cannot send session cookie - headers already sent...¡±»򕟡°Cannot add header information - headers already sent...¡±¡£ 6. ΒШҪֱ½ӷÎʇ뇳±¨ͷ֐µĐŏ¢£¬ԵôĜ°쵽? $headers = getallheaders(); foreach ($headers as $name = $content) {echo "headers[$name] = $content br \n";} 8. ΒµĠPHP ½ű¾Ԛ IE º͠Lynx ςĜ¹¤׷£¬µ«ʇԚ Netscape ֐ӐµĊ䳶¶ªʧK¡£µ±ΒӃ¡°²鿴Դ΄¼þ¡±ʱ¿ɒԔڊ IE ֐¿´µ½Ěȝ£¬µ«ʇ Netscape ֐²»Ĝ¡£ 9. ΒԵѹ»캏ʹӃ XML º͠PHP£¿˼²»ȏΒµĠ ?xml ±꼇£¡ »·¾³±䁿ͨ³£¶¼ʇȫ¾ֱ䁿£¬Ҳ´˄㱘ЫԚģµĺ¯ʽ֐ɹ÷˼ÇΪȫ¾ֱ䁿£¨=ȧӃ global $DOCUMENT_ROOT;£©£¬»򕟓È«¾ֱ䁿ʽש£¨=ȧ $GLOBALS["DOCUMENT_ROOT"]£©¡£ º󍋼/A ưµ㼯A ±ҫΊ̢ ɏһ¼¶ PHP º͠HTML