PHP ÏÂÔØʱµÄÎļþÃûÎÊÌâ
ÓÐÕâôһ¸ö³¡¾°:
Óû§ÉÏ´«Ò»¸öÎļþ(file.txt), ΪÁ˱ÜÃâÖØÃû, ÎÒ½«ÆäÖØÃüÃûÁË - 20100410001.txt, È»ºóÔÚÏÂÔØÒ³ÃæÎÒÌṩһ¸ö <a></a>£¬ °Ñ href Ö±½ÓÖ¸Ïò·þÎñÆ÷ÉϵÄ·¾¶ xxx/xxx/20100410001.txt, µ±È»ÏÂÔØûÓÐÈκÎÎÊÌâ
µ«ÊÇÎÒÏëÁËÏë, µ±ÆäËûÓû§ÏÂÔØÕâ¸öÎļþ, µÃµ½20100410001.txt»áºÜÎÞÀåÍ·, Èç¹ûÏÂÔØʱµÄÃû×ÖÊÇ file.txt (ÉÏ´«Óû§¸øµÄÃû×ֿ϶¨±ÈÒ»´®Êý×Ö¸ü¼ÓÓк¬Òå), Õâ¸ö¿É²»¿ÉÒÔʵÏÖÄØ? ÉÏ´«ÎļþµÄÐÅÏ¢¶¼±£ÁôÔÚÊý¾Ý¿âÖÐ - ÔÎļþÃû, ´óСµÈµÈÐÅÏ¢¶¼ÓÐ, µ«ÊDz»ÖªµÀÈçºÎÀ´×öÕâ¸öÊÖ½Å, лл´ó¼Ò£¡
·Ç³£¸Ðл2λ£¡£¡
ÎÒÔÚ http://topic.csdn.net/u/20100410/17/b738673d-4b9c-4718-8e6a-0010b0f78580.html ÓÐһƪһÑùµÄÌû×Ó, 2λ¿ÉÒԻظ´Ò»Ï£¬ ÎÒ¸øÄãÃÇ·Ö
Ïà¹ØÎÊ´ð£º
ÔÚ¹úÍâµÄ¿Õ¼ä£¬ÆäËüµÄphpÕ¾µã¶¼Õý³££¬¿ÉÖ»ÓÐ×î½ü½¨µÄÕâ¸öÕ¾µã£¬Ö»ÒªÒ»ä¯ÀÀ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:
......
ÇëÎÊ£¬ÒÔÏ´úÂ룬Ϊʲô²»¹ÜÓ㿾Ístr_replaceÕâ¸öº¯Êý£¬Ì滻ôÓÐÆð×÷Óã¿
PHP code:
$gg='<script type=\"text/JavaScript\">
alimama_pid=\"mm_14281022_2030060_8250750\";
alima ......
ËÓÐPHP memcachedµÄÏîĿʵÀý£¬Ö÷ÒªÓÃÀ´Ñ§Ï°¡£·¢Ë͵½ÎÒµÄÓÊÏä790684386@qq.com лл
¾ÍÊÇ¿´ÊÖ²á¾Í¿ÉÒÔÁË
¶¼ÊÇÄÇÑù×ÓµÄ
key $value
queryphp ORMÊý¾Ý¿âÀà
---------------------------------------------------- ......
¾ÍÊÇÎÒÔÚij¸öÍøÒ³²åÈëÁËÒ»¸öphpÁ´½Ó
ÎÒÏë»ñµÃÄǸöÍøÖ·µÄµØÖ·¶øÇÒÒªÊä³ötxt¸ñʽ»òÆäËû¸ñʽ¡£Ó¦¸ÃÈçºÎʵÏÖ£¿£¿£¿
ÒýÓÃ
PHP code
<?php
if(!file_exists("ceshi.txt")){
fopen("ceshi. ......