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

×îÁîPHP³õѧÕßÍ·Í´µÄÊ®ËĸöÎÊÌâ

 ¡¾1¡¿Ò³ÃæÖ®¼äÎÞ·¨´«µÝ±äÁ¿ get,post,sessionÔÚ×îеÄphp°æ±¾ÖÐ×Ô¶¯È«¾Ö±äÁ¿Êǹرյģ¬ËùÒÔÒª´ÓÉÏÒ»Ò³ÃæÈ¡µÃÌá½»¹ýÀ´µÃ±äÁ¿ÒªÊ¹ÓÃ$_GET['foo'],$ _POST['foo'],$_SESSION['foo']À´µÃµ½¡£µ±È»Ò²¿ÉÒÔÐÞ¸Ä×Ô¶¯È«¾Ö±äÁ¿Îª¿ª(php.ini¸ÄΪ register_globals = On)£»¿¼Âǵ½¼æÈÝÐÔ£¬»¹ÊÇÇ¿ÆÈ×Ô¼ºÊìϤеÄд·¨±È½ÏºÃ¡£¡¡¡¡
¡¾2¡¿Win32ÏÂapache2 ÓÃget·½·¨´«µÝÖÐÎIJÎÊý»á³ö´í£ºtest.php?a=ÄãºÃ&b=ÄãÒ²ºÃ¡¡
¡¡´«µÝ²ÎÊýÊǻᵼÖÂÒ»¸öÄÚ²¿´íÎó¡¡¡¡
¡¡½â¾ö°ì·¨:"test.php?a=".urlencode(ÄãºÃ)."&b=".urlencode(ÄãÒ²ºÃ)¡¡
¡¾3¡¿win32ϵÄsession²»ÄÜÕý³£¹¤×÷¡¡
¡¡php.iniĬÈϵÄsession.save_path = /tmp¡¡
¡¡ÕâÏÔÈ»ÊÇlinuxϵÄÅäÖã¬win32ÏÂphpÎÞ·¨¶ÁдsessionÎļþµ¼ÖÂsessionÎÞ·¨Ê¹Ó㬰ÑËü¸Ä³ÉÒ»¸ö¾ø¶Ô·¾¶¾Í¿ÉÒÔÁË£¬ÀýÈçsession.save_path = c:windows emp¡¡¡¡
¡¾4¡¿ÏÔʾ´íÎóÐÅÏ¢¡¡¡¡
µ±php.iniµÄdisplay_errors = On²¢ÇÒerror_reporting = E_ALLʱ£¬½«ÏÔʾËùÓеĴíÎóºÍÌáʾ£¬µ÷ÊÔµÄʱºò×îºÃ´ò¿ªÒÔ±ã¾À´í£¬Èç¹ûÄãÓÃÒÔÇ°phpд·¨´íÎóÐÅÏ¢¶à°ëÊǹØÓÚ䶨Òå±äÁ¿µÄ¡£±äÁ¿ÔÚ¸³ÖµÒÔÇ°µ÷ÓûáÓÐÌáʾ£¬½â¾ö°ì·¨ÊÇ̽²â»òÕßÆÁ±Î¡£¡¡¡¡
ÀýÈçÏÔʾ$foo£¬¿ÉÒÔif(isset($foo)) echo $foo »òÕßecho @$foo¡¡¡¡
¡¾5¡¿Win32ÏÂmail()²»ÄÜ·¢Ë͵ç×ÓÓʼþ¡¡¡¡
ÔÚlinuxÏÂÅäÖúõÄsendmail¿ÉÒÔ·¢ËÍ£¬ÔÚwin32ÏÂÐèÒªµ÷ÓÃsmtp·þÎñÆ÷À´·¢Ë͵ç×ÓÓʼþ£¬ÐÞ¸Äphp.iniµÄSMTP = ip //ipÊDz»´øÑéÖ¤¹¦ÄܵÄsmtp·þÎñÆ÷(ÍøÉϺÜÄÑÕÒµ½)¡¡¡¡
php·¢ËÍÓʼþµÄ×îºÃ½â¾ö·½·¨ÊÇÓÃsocketÖ±½Ó·¢Ë͵½¶Ô·½email·þÎñÆ÷¶ø²»ÓÃת·¢·þÎñÆ÷¡£¡¡¡¡
¡¾6¡¿³õ×°µÄmysqlÈç¹ûûÓÐÉèÖÃÃÜÂ룬Ӧ¸ÃʹÓÃupdate mysql.user set password="yourpassword" where user="root" ÐÞ¸ÄÃÜÂë¡¡¡¡
¡¾7¡¿header already sent¡¡¡¡
Õâ¸ö´íÎóͨ³£»áÔÚÄãʹÓÃHEADERµÄʱºò³öÏÖ£¬Ëû¿ÉÄÜÊǼ¸ÖÖÔ­Òò£º
1£¬ÄãÔÚʹÓÃHEADERÇ°PRING»òÕßECHOÁË
2.Ä㵱ǰÎļþÇ°ÃæÓпÕÐÐ
3.Äã¿ÉÄÜINCLUDEÁËÒ»¸öÎļþ,¸ÃÎļþβ²¿ÓпÕÐлòÕßÊä³öÒ²»á³öÏÖÕâÖÖ´íÎó¡££¡¡¡¡¡
¡¾8¡¿¸ü¸Äphp.iniºóûÓб仯¡¡¡¡
ÖØÐÂÆô¶¯web server£¬±ÈÈçIIS£¬ApacheµÈµÈ£¬È»ºó²Å»áÓ¦ÓÃ×îеÄÉèÖᣡ¡¡¡
¡¾9¡¿phpÔÚ2003ÉÏÃæ°²×°£¨ISAPIµÄ°²×°·½·¨¿ÒÇë¸ßÊÖÖ¸½Ì£©¡¡¡¡
PHP4µÄphp4isapi.dllºÃÏñºÍ2003ÓÐЩ³åÍ»£¬Ö»ÄÜÓÃCGIģʽ°²×°¡¡¡¡
²½ÖèÒ»£¬ÏÈwww.php.net ÏÂÔÚÒ»¸ö°²×°³ÌÐò£¬ÎÒÊÇ×°µÄÊÇ£ºphp-4.2.3-installer.exe£¬ÄãÒ²¿ÉÒÔÈ¥ÕÒ×îеİ汾£¬ÔÚ°²×°php-4.2.3- installer.exe


Ïà¹ØÎĵµ£º

PHP£¬Ìæ»»¶à¸öÎļþÖеÄÎı¾

ÐèÇó£º
    ÐèÒª¶ÔÁ½¸öĿ¼ÖеÄÎļþÄÚÈݽøÐвéÕÒÌæ»»£¬Á½¸öĿ¼²éÕÒÌæ»»µÄÄÚÈݲ»Ò»Ñù¡£
    ÊµÏÖÖÐ×¢Ò⼸µã£º
    £¨1£©º¯ÊýµÝ¹éµ÷Óã¬À´¼ìË÷×ÓĿ¼£»
    £¨2£©º¯ÊýÃû¿ÉÒÔÒÔ²ÎÊýÐÎʽ´«µÝ£»
    £¨3£©Ó㿽øÐзÇÌ°À·Æ¥Å䣻
   ......

flash+php¶àÎļþÉÏ´« (ÄÚº¬Ô´Îļþ)

ÍøÉϵÄͼƬÉÏ´«ºÜÉÙ£¬Òª²»¾ÍÊÇÀÏÍâµÄ¶«Î÷£¡
ÓÃ×Å×ܸоõ²»Ë¬~~ÓÚÊÇ×Ô¼º×öÁËÒ»¸ö£¡Ä¿Ç°»ù±¾ÉϹ¦ÄÜÒѾ­Íê³É¡£ÍêÈ«¹ú²ú¹þ¹þ
ÇëÖ§³Ö¹ú»õ£¡
Éϼ¸¸öͼ£º
Ö÷ÒªÌصã½éÉÜһϣº
1.³ÌÐòÓÅ»¯ ÔÚ1.0°æ±¾»ù´¡ÉÏÓÅ»¯Á˳ÌÐò
2.ÐÞÕýÉÏ´«Ê±ºò¹ö¶¯ÌõBUG
3.¿ÉÖظ´Ìí¼ÓÁÐ±í ²»Öظ´Ìí¼ÓÒÑÓÐͼƬ
4.¿ÉÇå¿ÕͼƬÁÐ±í£¬Ò²¿Éµ¥ÕÅͼƬɾ³ý
5.Ìå ......

¼ÆËã×î½üÒ»ÖܵÄphp³ÌÐò

 
$curdate= date('N'); 
switch ($curdate)
{
case 1:
$diff='0,1,2,3,4,5,6';
break;
case 2:
$diff='-1,0,1,2,3,4,5';
break;
case 3:
$diff='-2,-1,0,1,2,3,4';
break;
case 4:
$diff='-3,-2,-1,0,1,2,3';
break;
case 5:
$diff='-4,-3,-2,-1,0,1,2';
break;
......

php½ÓÊÜxmlºÍ·¢ËÍ(post)xml

 
½ÓÊÕxml:
$xml = file_get_contents('php://input');
 
·¢ËÍ(post):
$xml_data = <xml>...</xml>";
$url = http://dest_url;
$header[] = "Content-type: text/xml";//¶¨Òåcontent-typeΪxml
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_ ......

PHP

ÎÒÊÇѧµç×ÓÉÌÎñµÄѧÉú£¬Ö÷Ҫѧϰ·½ÏòÊǵç×ÓÉÌÎñ¼¼Êõ²ãÃæµÄ¶«Î÷¡£Ñ§ÁËÒ»Äê¶àµÄʱ¼äÁË£¬¸Ð¾õСÓÐÊÕ»ñ¡£
Ç°¶Îʱ¼ä³öÈ¥ÃæÊÔflashµÄʱºò·¢ÏÖ×Ô¼ººÍ±ðÈ˵ÄÒªÇó²î¾àÉõÔ¶£¬»Øµ½Ñ§Ð£ºóŬÁ¦µÄѧϰPHP£¬×ÔÎҸоõ»¹²»´í£¬È«°àֻʣϼ¸¸öÈËÔÚѧºǫ́ÓïÑÔÁË£¬²»ÖªµÀÊÇÒòΪÓÐÁËÉÏÒ»´ÎµÄ´ò»÷»¹ÊÇÒòΪÎÒÊʺÏѧPHP£¬×ÔÈÏΪѧµÃ±È½Ï¿ì£¬ÖÁÉÙ±ÈÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ