Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

PHPѧϰ֮ PHP Óï·¨

»ù±¾µÄ PHP Óï·¨
PHP µÄ½Å±¾¿éÒÔ <?php ¿ªÊ¼£¬ÒÔ ?> ½áÊø¡£Äú¿ÉÒÔ°Ñ PHP µÄ½Å±¾¿é·ÅÖÃÔÚÎĵµÖеÄÈκÎλÖá£
µ±È»£¬ÔÚÖ§³Ö¼òдµÄ·þÎñÆ÷ÉÏ£¬Äú¿ÉÒÔʹÓà <? ºÍ ?> À´¿ªÊ¼ºÍ½áÊø½Å±¾¿é¡£
²»¹ý£¬ÎªÁË´ïµ½×îºÃµÄ¼æÈÝÐÔ£¬ÎÒÃÇÍÆ¼öÄúʹÓñê×¼ÐÎʽ (<?php)£¬¶ø²»ÊǼòдÐÎʽ¡£
<?php
?>
PHP Îļþͨ³£»á°üº¬ HTML ±êÇ©£¬¾ÍÏñÒ»¸ö HTML Îļþ£¬ÒÔ¼°Ò»Ð© PHP ½Å±¾´úÂë¡£
ÔÚÏÂÃæ£¬ÎÒÃÇÌṩÁËÒ»¶Î¼òµ¥µÄ PHP ½Å±¾£¬Ëü¿ÉÒÔÏòä¯ÀÀÆ÷Êä³öÎı¾ "Hello World"£º
<html>
<body>
<?php
echo "Hello World";
?>
</body>
</html>
PHP ÖеÄÿ¸ö´úÂëÐж¼±ØÐëÒԷֺŽáÊø¡£·ÖºÅÊÇÒ»ÖÖ·Ö¸ô·û£¬ÓÃÓÚ°ÑÖ¸Áî¼¯Çø·Ö¿ªÀ´¡£
ÓÐÁ½ÖÖͨ¹ý PHP À´Êä³öÎı¾µÄ»ù´¡Ö¸Áecho ºÍ print¡£ÔÚÉÏÃæµÄÀý×ÓÖУ¬ÎÒÃÇʹÓÃÁË echo Óï¾äÀ´Êä³öÎı¾ "Hello World"¡£
PHP ÖеÄ×¢ÊÍ
ÔÚ PHP ÖУ¬ÎÒÃÇʹÓà // À´±àдµ¥ÐÐ×¢ÊÍ£¬»òÕßʹÓà /* ºÍ */ À´±àд´óµÄ×¢ÊͿ顣
<html>
<body>
<?php
//This is a comment
/*
This is
a comment
block
*/
?>
</body>
</html>


Ïà¹ØÎĵµ£º

PHPÖÐÎÄÂÒÂë½â¾ö°ì·¨


Ò»£®         Ê×ÏÈÊÇPHPÍøÒ³µÄ±àÂë
1.     phpÎļþ±¾ÉíµÄ±àÂëÓëÍøÒ³µÄ±àÂëӦƥÅä
a.     Èç¹ûÓûʹÓÃgb2312±àÂ룬ÄÇôphpÒªÊä³öÍ·£ºheader(“Content-Type: text/html; charset=gb2312")£¬¾²Ì¬Ò³ÃæÌí¼Ó<meta http-equiv="Cont ......

³£ÓÃʱ¼ä¸ñʽÓëPHPʱ¼ä¸ñʽÏ໥ת»»

ÎÄ/Fenying
 
¡¡¡¡ÀýÈçÓг£ÓÃʱ¼ä¸ñʽ yyyy-mm-dd HH:ii:ss£¬ÈçºÎת»»³ÉPHPÖÐdateº¯Êý¿ÉʹÓõÄʱ¼ä¸ñÊ½ÄØ£¿
¡¡¡¡Ê¹ÓàPHPTimeFormatfromCommon() ¿ÉÒÔ°ÑͨÓÃʱ¼ä¸ñʽת»»³ÉPHPʱ¼ä¸ñʽ
¡¡¡¡¡¡¡¡PHPTimeFormatfromCommon('yyyy-mm-dd HH:ii:ss') => 'Y-m-d H:i:s'
¡¡¡¡Ê¹Óà PHPTimeFormatToCommon() ¿ÉÒÔ° ......

flashÓëphp½áºÏʵÏÖIP¼°¹éÊôµØ²éѯ

Êý¾Ý¿âÊÇ ´¿ÕæÊý¾Ý¿â ¸ñʽΪ UTF-8  txt¸ñʽ
phpÎļþÊÇUTF-8±àÂë 
demo :      http://dreamnight.gicp.net/zendphp/IP/connect.swf
flash¶Ë£º
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.events.ProgressEvent;
//i ......

¶à¸öPHP°æ±¾ÔÚͬһIIS·þÎñÆ÷


ÕâÆªÎÄÕ½éÉÜÈçºÎÅäÖÃIISÒÔÖ§³ÖÔÚͬһ̨·þÎñÆ÷µÄ¶à¸ö°æ±¾µÄPHP¡£ÕâÔÚÐèÒª²âÊÔ²»Í¬PHP°æ±¾Ó¦ÓóÌÐòµÄ¿ª·¢»·¾³Öа²×°ÊǷdz£ÓÐÓõġ£´ËÍ⣬Ëü¾­³£±»ÓÃÔÚÉú²ú»·¾³ÖУ¬Ðí¶àPHPÓ¦ÓóÌÐòפÁôÔÚͬһ̨·þÎñÆ÷ÉÏ£¬ÆäÖÐһЩÒÀÀµÓÚij¸öÌØ¶¨µÄPHP°æ±¾¡£
ΪÁËÔÚͬһIIS·þÎñÆ÷ÉÏͬʱ°²×°¶à¸ö°æ±¾µÄPHP£¬±ØÐë°´ÕÕphp.netÎĵµIIS 5.1ºÍIIS ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ