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
$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