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

PHPʵÏÖÎļþµÄ¶ÁºÍд¹¦ÄÜ

½øÐÐÎļþµÄ¶ÁºÍд£¬ÏÈ´ò¿ªÒ»¸öÎļþ£¬È»ºó¿ªÊ¼¶Á»òÕßдÎļþ£¬×îºóÔÙ¹ØϵÕâ¸öÎļþ×ÊÔ´¡£
È磬ÎļþµÄ¶Á²Ù×÷£º
<?php
$file = fopen('your file path','r');
while(!feof($file)){ //µ±Ã»ÓжÁÈ¡µ½Îļþ½á⣬¼ÌÐøÑ­»·¶ÁÈ¡²Ù×÷
$line = fgets($file); //¶ÁÈ¡µ½Ò»ÐеÄÄÚÈÝ
echo $line.'<br/>';
}
fclose($file);
?> 
ÎļþµÄд²Ù×÷£º
<?php
$file = fopen('your file path','a');
fwrite($file,'hello');
fclose($file);
echo 'done';
?> 
µ±È»ÄãÏë͵ÀÁµÄ»°£¬Ò²¿ÉÒÔÓÃfile_get_contents(filepath)£¬file_put_contents(filepath,data)½øÐжÁд²Ù×÷¡£
¿ÉÒÔÓÃfile_exists º¯Êý¼ì²éÎļþÊÇ·ñ´æÔÚ¡£


Ïà¹ØÎĵµ£º

php¿ª·¢¿ò¼Ü´î½¨

1.   Windows XP »·¾³Ï°²×° Apache HTTP Server 2.2.8
 
¸ÃÕ½ڽ²ÊöÈçºÎÔÚ Windows XP »·¾³Ï°²×° Apache HTTP Server¡£
ÏÂÔØ Apache HTTP Server 2.2.8
Apache µÄ¹Ù·½ÍøÕ¾ÊÇ http://apache.org/¡£
Apache HTTP Server µÄÏÂÔØÒ³ÃæÊÇ http://httpd.apache.org/download.cgi£¬¸ÃÒ³ÖлáÌáʾÄã¿É¹©ÏÂÔصľ ......

php preg_split ÓÃÕýÔò±í´ïʽ·Ö¸î×Ö·û´®

˵Ã÷ array preg_split ( string $pattern, string $subject [, int $limit [, int $flags]] ) ·µ»ØÒ»¸öÊý×飬°üº¬ subject ÖÐÑØ×ÅÓë pattern Æ¥ÅäµÄ±ß½çËù·Ö¸îµÄ×Ó´®¡£ Èç¹ûÖ¸¶¨ÁË limit£¬Ôò×î¶à·µ»Ø limit ¸ö×Ó´®£¬Èç¹û limit ÊÇ -1£¬ÔòÒâζ×ÅûÓÐÏÞÖÆ£¬¿ÉÒÔÓÃÀ´¼ÌÐøÖ¸¶¨¿ÉÑ¡²ÎÊý flags¡£ flags ¿ÉÒÔÊÇÏÂÁбê¼ÇµÄÈÎÒâ× ......

40¸ö¼£Ïó±íÃ÷Ä㻹ÊÇPHP²ËÄñ

ËäÈ»ÏÂÃæµÄ¶«Î÷ÊÇÕë¶ÔPHP¿ª·¢ÈËԱ˵µÄ£¬ÆäʵºÜ¶àÔ­Ôò¶¼ÊÇͨÓõģ¬ASP.NET,JSP¿ª·¢ÈËÔ±Ò²Ò»Ñù¿ÉÒÔ²ÎÕÕ£¡ ÌùÔÚÕâÀïºÍ´ó¼Ò¹²Ã㣡
ÎÄ×÷ÕߣºReinhold Weber
Ô­ÎÄÁ´½Ó£º40 signs you really are a lousy PHP programmer
ÒëÕߣºdavidkoree
40¸ö¼£Ïó±íÃ÷Ä㻹ÊÇPHP²ËÄñ
ÎÒÔ¸Òâ°Ñ±¾ÎĹéÈëÎҵē±à³ÌôÜÊ”ϵÁС£¾¡¹ÜÔÚ ......

WindowsÏÂPHP¿ªÆômcryptÀ©Õ¹ºÍSSL(OpenSSL£©À©Õ¹Ö§³Ö

½ñÌìÏëʹÓÃÒ»ÏÂPHPµÄOpenSSLÀ©Õ¹¿â£¬Ï°¹ßÐԵĴÓphp.iniÖÐÏàÓ¦Ðдò¿ªÖ§³Ö£¬È»ºóË¢ÐÂÒ³Ã棬·¢ÏÖ¾¹È»»¹ÊDz»Ö§³Ö£¿
ÓôÃÆ֮ϣ¬¿´ÁË¿´ApacheµÄ´íÎóÈÕÖ¾£ºÌáʾ“²»ÄܼÓÔØXXX¶¯Ì¬¿â"£¿
ÕæÊǼû¹í£¬±ðµÄÁ´½Ó¿â¶¼¿ÉÒÔ×°È룬Ϊʲôphp_mcrypt.dllºÍphp_openssl.dllÕâÁ½¸öÁ´½Ó¿âÎÞ·¨×°ÈëÄØ£¿
ÉÏÍø²éÁËÒ»ÏÂ×ÊÁÏ£¬Ô­À´ÕâÁ½¸ö ......

Ê®Ììѧ»áphpÖ®µÚ°ËÌì

 Ñ§Ï°Ä¿µÄ£º×öÒ»¸ö·ÖÒ³ÏÔʾ
¡¡¡¡¹Ø¼ü¾ÍÊÇÓõ½ÁËSQLÓï¾äÖеÄlimitÀ´ÏÞ¶¨ÏÔʾµÄ¼Ç¼´Ó¼¸µ½¼¸¡£ÎÒÃÇÐèÒªÒ»¸ö¼Ç¼µ±Ç°Ò³µÄ±äÁ¿$page£¬»¹ÐèÒª×ܹ²µÄ¼Ç¼Êý$num
¡¡¡¡¶ÔÓÚ$pageÈç¹ûûÓÐÎÒÃǾÍÈÃËü=0£¬Èç¹ûÓÐ<0¾ÍÈÃËüÒ²=0£¬Èç¹û³¬¹ýÁË×ܵÄÒ³Êý¾ÍÈÃËû=×ܵÄÒ³Êý¡£
¡¡¡¡$execc="select count(*) from tablename ";
¡¡¡¡$re ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ