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

PHP¿ª·¢»·¾³´î½¨windows

ÔÚWindowsÖÐÅäÖÃPHP»·¾³ phpnowÔÚWindowsÏÂÅäÖû·¾³ºÜÊÇ·½±ã£¬µ«ÊǼæÈݲ¢²»ÊǺܺã¬ÓÐЩʱºòÎÒÃÇ»¹ÐèÒªÊÖ¶¯ÔÚWindowsÅäÖÃPHP»·¾³,ÊÖ¶¯ÅäÖÃÓÖºÜÂé·³¾­³£Íü¼ÇÅäÖò½Öè¡£ËùÒÔ½ñÌìÌØÒâ¼Ç¼ÅäÖùý³Ì¡£ Ê×ÏÈÎÒÃÇÐèÒªÏÂÔØ£º apacheµÄ¹Ù·½ÏÂÔØµØÖ·: http://httpd.apa
¡¡¡¡
ÔÚWindowsÖÐÅäÖÃPHP»·¾³
phpnowÔÚWindowsÏÂÅäÖû·¾³ºÜÊÇ·½±ã£¬µ«ÊǼæÈݲ¢²»ÊǺܺã¬ÓÐЩʱºòÎÒÃÇ»¹ÐèÒªÊÖ¶¯ÔÚWindowsÅäÖÃPHP»·¾³,ÊÖ¶¯ÅäÖÃÓÖºÜÂé·³¾­³£Íü¼ÇÅäÖò½Öè¡£ËùÒÔ½ñÌìÌØÒâ¼Ç¼ÅäÖùý³Ì¡£
Ê×ÏÈÎÒÃÇÐèÒªÏÂÔØ£º
apacheµÄ¹Ù·½ÏÂÔØµØÖ·:
http://httpd.apache.org/download.cgi
mysql¹Ù·½ÏÂÔØµØ:
http://dev.mysql.com/downloads/mysql/5.0.html#win32
php¹Ù·½ÏÂÔØµØÖ·£ºhttp://www.php.net/downloads.php
phpMyAdmin¹Ù·½ÏÂÔØµØÖ·£ºhttp://phpmyadmin.com/
ËùÐèÈí¼þÎÒÃÇÊÇÏÂÔØÍêÁË£¬½ÓÏÂÀ´ÎÒÒª°²×°£¬µã»÷apache_2.0.59-win32-x86-no_ssl.msi£¬apacheĬÈ϶˿ÚÎÒÃÇÑ¡Ôñ80£¬»¹ÓоÍÊDz»ÒªºÍIISµÃ¶Ë¿ÚºÅÓгåÍ»¡£ÓëÆÕͨӦÓóÌÐò°²×°
ºÍÀàËÆ¡£³ÌÐò°²×°Íêºó£¬ÎÒÃÇÔÚä¯ÀÀÆ÷ÖÐÊäÈ룺http://127.0.0.1¾Í¿ÉÒÔ¿´µ½±êÌâд×Ű²×°Apache²âÊÔÒ³Ãæ£¬±íʾÎÒÃǵÃapache°²×°³É¹¦¡£
Mysql°²×°£º
ÎÒÃÇÔËÐÐmysqlÎļþ¼ÐϵÄSetup.exe¡£ÆäÖÐÓÐÐèÒªÉèÖÃÃÜÂëÒ»²½£¬Ò»°ã½¨ÒéÃÜÂ벻ҪΪ¿Õ£¨È磺ÎÒÃǰÑÃÜÂëÉèÖóÉ123456£©¡£½Ó×ŵã»÷ÏÂÒ»²½£¬½Ó×ÅÊÇFinish¡£ÎÒÃǵÄÊý¾Ý¿âÒ²°²×°Íê±ÏÁË¡£
PHP°²×°ÅäÖãº
ÎÒÃǰÑphp-5.2.3-Win32.zip½âѹµ½CÅ̸ùĿ¼Ï£¬°ÑÎļþ¼ÐÃû×ָijÉPHP£¬
ÕâÑù·½±ãһϡ£ÕÒµ½PHPĿ¼Ïµēphp.ini-dist”»òÕß“php.ini-recommended”Îļþ£¬
ÎÒÃǰÑËü´ÓÃüÃûΪ"php.ini"£¬¸´ÖƵ½“C:\WINDOWS”Ï¡£
ÔÚ½«phpĿ¼ÏµÃphp5ts.dll¸´ÖƵ½“C:\WINDOWS\system32”Ŀ¼Ï¡£
½«php\extĿ¼Ïµēphp_gd2.dll”Óë“php_msql.dll”¸´ÖƵ½“C:\WINDOWS\system32”Ŀ¼Ï¡£
ÐÞ¸ÄapacheµÄhttpd.conf:ÕÒµ½E:\Apache2\confϵÓhttpd.conf”Îļþ£¨×îºÃÊÂÏȱ¸·Ýһϣ©¡£
ÕÒµ½DocumentRoot,°ÑËüÐ޸ijÉÄãÍøÕ¾µÃ¸ùĿ¼,Èç“DocumentRoot "E:/Apache2/htdocs"”£»
²éÕÒDirectoryIndex index.html index.html.var ÔÚºóÃæ¼ÓÈëindex.php
²éÕÒ#LoadModule ssl_module modules/mod_ssl.so ÁîÆðÒ»ÐмÓÈëLoadModule php5_module
c:\php\php5apache2.dll;
²éÕÒAddType application/x-gzip.gz.tgzºóÃæ¼ÓÈëÒ»ÐÐA


Ïà¹ØÎĵµ£º

php ÖÐÇÉÓà @ ȦA Ȧa Îļþ²Ù×÷ ¾¯¸æ

¶ÔÓÚ³õѧÕßÀ´Ëµ£¬ÎÒÃÇÓÐʱºò»á¿´¼ûPHPÖÐÓÐÕâÑùµÄд·¨£º
@ unlink($filepath);
Ò²¿ÉÒÔд³É£º
unlink($filepath);
²»Ã÷°×ÕâÁ½ÖÖд·¨ÓÐÊ²Ã´Çø±ð£¬±íÃæÉÏ£¬³ÌÐòÔËÐÐÆðÀ´ËƺõÃ»Ê²Ã´Çø±ð¡£
ʵ¼ÊÉÏ£¬¼ÓÉÏ@·ûºÅ£¬ÓÐÒÖÖÆ´íÎóÏÔʾµÄ¹¦ÄÜ¡£
¾ÍÄÃÉÏÃæµÄ´úÂëÀ´Ëµ£¬È¥µô@ʱ£¬
Èç¹û±»É¾³ýµÄÎļþ²»´æÔڵϰ£¬Ôò»áÏÔʾÎļþ²»´æÔڵĴíÎ ......

PerlºÍPHPÔÚLinuxÏÂÎÞ·¨mkdir 777µÄÎÊÌâ

Ê×ÏÈPerl mkdir µÄÓï·¨ÊÇ£º
1.mkdir('dir', ´ú±í¾Åλ¶þ½øÖÆÊý×ÖµÄÊ®½øÖÆÖµ)
ÉèÖÃ775£¬Ôò¸ÃֵΪʮ½øÖƵÄ509£¬¼´¶þ½øÖƵÄ111111101
´ËÊýÖµ²»ÄÜÉèÖÃΪ111111111¼´Ê®½øÖƵÄ511¼´777¡£
2.mkdir('dir', 0³£¼ûunix3λȨÏÞ)
¿ÉÒÔÉèÖÃ777¡£
È»ºóÔÚlinuxÏÂʱ£¬ÓÉÓÚumaskµÄÔ­Òò£¬Ö»ÄÜÉèÖÃΪ755¡£
ÒòΪ´´½¨ÎļþʱµÄȨÏÞÊÇumaskºÍ ......

PHP³ÌÐòÔ±Ó¦¸ÃÁ˽âMongoDBµÄÎå¼þÊÂ

2010ÄêÓ¦¸Ã±»ÈËÃǼÇס£¬ÒòΪSQL½«ÔÚÕâÒ»ÄêËÀÈ¥¡£ÕâÒ»Äê¹ØÏµÊý¾Ý¿âÐн«¾Íľ£¬ÕâÒ»Ä꿪·¢Õß·¢ÏÖËûÃÇÔÙ²»ÐèÒª³¤Ê±¼äÐÁ¿àµÄ¹¹ÔìÁлòÕß±í¸ñÀ´´æ·ÅÊý¾Ý¡£ 2010Ä꽫ÊÇÎĵµÐÍÊý¾Ý¿âµÄÆðʼÄê¡£¾¡¹ÜÕâÑùµÄÊÆÍ·ÒѾ­³ÖÐø¶àÄ꣬ÏÖÔÚ²ÅÊÇÒ»¸ö¸ü¶à£¬¸ü¹ã·ºµÄÎĵµÐÍÊý¾Ý¿â³öÏÖµÄÄê´ú¡£´Ó»ùÓÚÔÆ¼ÆËãµÄAmazonµ½Google£¬´óÁ¿¿ªÔ´¹¤¾ß£¬ÒÔ¼°ËæÖ® ......

·Ç³£¼òµ¥PHPËõÂÔͼÉú³É³ÌÐòÔ´´úÂë


Ò»¸ö·Ç³£¼òµ¥µÄPHPÉú³ÉËõÂÔͼµÄ´úÂë³ÌÐò£¬²ÎÊý¼°´úÂë¶¼ËãµÃÉϾ«¼ò£¬ÓÐÐËȤµÄÅóÓÑ¿ÉÒÔÊÔÏÂËüµÄ¹¦ÄÜ£¬Óв»Ì«ÍêÉÆµÄµØ·½»¹ÇëÖ¸Õý¡£ ·ÇÔ­´´£¬À´×ÔÍøÂç
<?$FILENAME="image_name";
// Éú³ÉͼƬµÄ¿í¶È
$RESIZEWIDTH=400;
// Éú³ÉͼƬµÄ¸ß¶È
$RESIZEHEIGHT=400;
function ResizeImage($im,$maxwidth,$maxheight,$name){ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ