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

phpÈçºÎ»ñÈ¡µ±Ç°Ò³µØÖ·À¸µÄURLµØÖ· - PHP / ¿ªÔ´×ÊÔ´

¾ÍÊÇÎÒÔÚij¸öÍøÒ³²åÈëÁËÒ»¸öphpÁ´½Ó

ÎÒÏë»ñµÃÄǸöÍøÖ·µØÖ·µØÖ·À¸µÄurl¶øÇÒÒªÊä³ötxt¸ñʽ»òÆäËû¸ñʽ¡£Ó¦¸ÃÈçºÎʵÏÖ£¿£¿£¿

»¹ÓоÍÊÇдÈëµ½.txt ÎļþÀÔõôȥÅжÏÊÇ·ñÖظ´¡£
$_sever[request_uri]




Â¥Ö÷¸øµã·Ö£¬1·Ö²»ÉÙ£¬10·Ö²»¶à£¬°Ýл£¡
Â¥Ö÷¸øµã·Ö£¬1·Ö²»ÉÙ£¬10·Ö²»¶à£¬°Ýл£¡
Â¥Ö÷¸øµã·Ö£¬1·Ö²»ÉÙ£¬10·Ö²»¶à£¬°Ýл£¡
Â¥Ö÷¸øµã·Ö£¬1·Ö²»ÉÙ£¬10·Ö²»¶à£¬°Ýл£¡
Â¥Ö÷¸øµã·Ö£¬1·Ö²»ÉÙ£¬10·Ö²»¶à£¬°Ýл£¡
Â¥Ö÷¸øµã·Ö£¬1·Ö²»ÉÙ£¬10·Ö²»¶à£¬°Ýл£¡

fwrite½«×Ö·ûдÈëÖ¸¶¨µÄÎļþ
$file=file_get_contents('a.txt');
echo $file;
$string="aaa";
echo strpos($file, 'a');
if(strpos($file, 'a')) {
  echo "ÄãÒª²åÈëµÄ×Ö·û´®ÒѾ­´æÔÚ";
}else{
  $fp=fopen("a.txt", "w+");
  $string=$file.":".$string;
  fwrite($fp, $string);
}
$file=file_get_contents('a.txt');
echo $file;
?>





Ïà¹ØÎÊ´ð£º

¸¶·ÑÇóÒ»¶Îphp´úÂ룬֧³ÖÌÔ±¦½»Ò× - PHP / »ù´¡±à³Ì

¸÷λ´óÏÀ 
ÇóÒ»¶Îphp´úÂë 
¿ÉÒÔʵÏÖÒÔϹ¦ÄÜ 
Õë¶Ô²»Í¬µÄä¯ÀÀÆ÷ÏÔʾ²»Í¬µÄͼƬ 
¾ÍÊÇÓÐÒ»ÕÅͼƬ£¬Ö»Ïë¸øie6Óû§¿´µ½ 
Èç¹ûie7¡¢chrome¡¢firefoxÓû§ä¯ÀÀÔòÏÔʾÁíÍâÒ»ÕÅͼƬ  ......

phpʱ¼äÕýÔòÎÊÌâ - PHP / »ù´¡±à³Ì

PHP code:

$date = '2009-12-25';
$ptn = '/([\d]{4})[- \/](0?[\d]|1[0-2])[-\/ ](0?[\d]|[1-2][\d]|3[0-1])/';
if (preg_match($ptn,$date,$out))
{
print_r($out);exit();
}
½á¹ûΪ:
PHP code:
......

php 5ÔõôÅäÖû·¾³ - PHP / »ù´¡±à³Ì

°²×°ÁËAPHACHE
¿ÉÊÇÔËÐÐÍøҳʲô¶¼Ã»ÓÐ
¼±
»¹ÏëÇëÎÊÏÂ,JSP.PHP.ASP.NET ÄǸö¹¤×ʸ߰¡,
»ØÌû¾Í¼Ó·Ö
»¹Òª×°php5

×öµÃºÃ£¬Äĸö¹¤×ʶ¼¸ß¡£

http://download.csdn.net/source/1712990 Õâ¸öÀïÃæÓÐÕû¸öPHPµÄ° ......

linux ¶¨Ê±ÖØÆô·þÎñ£¬ÔÚÏßµÈ - PHP / »ù´¡±à³Ì

ÎÒµÄÏîÄ¿ËùÔڵĻ·¾³ÊÇphp+apache+linux
ÏÖÎÒÖØÆô·þÎñÊÇ service httpd restart 
ÏÖÎÒÏ붨ʱÖØÆô´ËÏî·þÎñ£¨¶¨ÔÚÿÌìÏÂÎç4µã£© ÔõôʵÏÖѽ£¬¶àл
crontab
* 16 * * * service httpd restart

ѧϰ + d ......

phpµ÷ÓÿÉÖ´ÐгÌÐò - PHP / »ù´¡±à³Ì

$last_line = system($cmd, $ret);
echo $last_line;
·µ»Ø×îºóÒ»ÐеĽá¹û¡£
¿ÉÖ´ÐгÌÐòûÓÐÎÊÌ⣬ֻÊÇÕâ¸ö³ÌÐòÐèÒªÔËÐкܳ¤Ê±¼ä¡£phpÒ³ÃæûÓзµ»ØÈκνá¹û¡£
ÎÒ¸ÄÁËһϿÉÖ´ÐгÌÐò£¬ÈÃËûsleep(10)£¬phpµ÷ÓÃûÓÐÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ