file

15
Jul

php目录里文件

$dir = 'lzcache';
if   (!is_dir($dir)){echo 'aaa';}
$dirhandle=opendir($dir); 
Tags:
10
Jun

文件修改指定行,配合cron实现无人值守更新首页(前提是库里有一定量文章)

<?php
$file = "tpllib/article_list.php";
$str = file($file);
$count = count($str);
//函数 count 
for ($i=0;$i<$count;$i++){
Syndicate content