嗨,我是使用下面的代碼:寫一個文件中的內容到另一個PHP的file_get_contents錯誤
$page = file_get_contents('myPage.php?id='.$_GET['id']);
$file = 'temp/form_'.$_GET['id'].'.html';
file_put_contents($page, $file);
但我不斷收到以下錯誤
Warning: file_get_contents(myPage.php?id=9) [function.file-get-contents]:
Invalid argument in C:\Program Files\etc\etc..
和
Warning: file_put_contents() [function.file-put-contents]: Filename
Filename cannot be empty in C:\Program Files\etc\etc..
任何人都知道什麼可能會導致這些錯誤
感謝
rifki
你是杜蒙再次廢話 – 2010-08-09 17:00:03
請注意,你**真**不應該傾銷'$ _GET的內容'變量到'file_get_contents'調用... – 2010-08-09 17:37:01