Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

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

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

PHP½«Í¼Æ¬´æÈëMYSQL

 ÍêÕûµÄʵÏÖÁËPHP½«Í¼Æ¬´æÈëMYSQL
Ç°Ì᣺
 1 Ê×ÏȱØÐëÓµÓÐPHPµÄÔËÐл·¾³£¬ÁíÍ⻹µÃÓÐMYSQLÊý¾Ý¿â
 2 Èç¹ûÎļþ²»ÄÜÉÏ´«³É¹¦Çë¼ì²épicsÊÇ·ñÊÇ¿ÉдµÄȨÏÞ
Ê×ÏÈÏÈ°Ñpic2db.rarÎļþ½âѹµ½PHP¿ÉÒÔÔËÐÐĿ¼Ï¡£
Æä´ÎÔÚMYSQLÖн¨Á¢Ò»¸öÊý¾Ý¿â:pic2db,È»ºóÔÚ¸ÃÊý¾Ý¿âϽ¨Á¢Ò»¸ö±í£¬±í½á¹¹Îª£º
CREATE TABLE `pi ......

LINUXÏ httpd.conf my.cnf php.iniµÄλÖÃ

 
ĬÈÏ£º
httpd.conf ÔÚ/etc/httpd/conf
my.cnf ÔÚ/etc
php.ini ÔÚ/usr/local/lib
ÔÚUnix ÉÏ£¬php.iniÎļþȱʡ·ÅÔÚ/usr/local/libÉÏÃ棬ÒòΪȱʡµÄ´æ·Å·¾¶ÊÇ<install-path>
/lib£¬µ«ÊÇ¿ÉÒÔÔÚ±àÒëµÄʱºòʹÓÃ--with-config-file-path²ÎÊýÀ´ÐÞ¸Äphp.iniµÄ´æ·ÅλÖã¬ÀýÈçÄã¿ÉÒÔʹÓÃ--with-
config-file-path ......

phpͼƬÉÏ´«

 <?php
if(empty($_GET[submit]))
{
?>
<form enctype="multipart/form-data" action="<?php $_SERVER['PHP_SELF']?>?submit=1" method="post">
<input name="filename" type="file">
<input type="submit" value="È·¶¨ÉÏ´«">
</form>
<?php
}
else{
   ......

PHP

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