0
我试图使用file_get_contents来获取文件的内容并删除该文件中某一行的某一部分。创建编辑和写入文件
以下任何地方我想达到什么?
$page = file_get_contents('myPage.php?id='.$_GET['id']);
$file = 'temp/form_'.$_GET['id'].'.html';
$change = file_get_contents('myPage.php?id='.$_GET['id']);
$change = str_replace("/Elements/", "", $change);
file_put_contents($page, $file);
http://stackoverflow.com/questions/3434210/creating-and-writing-files-with-php – fabrik 2010-08-10 11:06:00
你的试验表明什么?它做你期望的事情吗? – Marcelo 2010-08-10 11:24:33