求php生成html实例

[复制链接]
查看11 | 回复2 | 2011-3-12 08:47:29 | 显示全部楼层 |阅读模式
回复

使用道具 举报

千问 | 2011-3-12 08:47:29 | 显示全部楼层
<pre id=\"best-answer-content\" class=\"reply-text mb10\">文章动态查看是 new.php?id=1~100

?
$id=1;
while ($id)
{
if ($id100) break;
$con = file_get_contents(\"new.php?id={$id}\");
$file_name = $id.\'.html\';
file_put_contents($file_name,$con);
}
?

















<h4 class=\"ask\">追问





<pre class=\"replyask-text\" id=\"content-672564\">如果指定到一个用ID的文件夹中的话,那么要怎么生成出这个文章动态ID,以ID为目录的文件夹?
回复

使用道具 举报

千问 | 2011-3-12 08:47:29 | 显示全部楼层
<pre class=\"replyask-text\" id=\"content-1045294\">完全没看懂什么意思 你说个例子
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行