Hi I'm using the following code: to write contents from one file to another
$page = file_get_contents('myPage.php?id='.$_GET['id']);
$file = 'temp/form_'.$_GET['id'].'.html';
file_put_contents($page, $file);
But I keep getting the following errors
Warning: file_get_contents(myPage.php?id=9) [function.file-get-contents]:
Invalid argument in C:\Program Files\etc\etc..
and
Warning: file_put_contents() [function.file-put-contents]: Filename
Filename cannot be empty in C:\Program Files\etc\etc..
Anyone know what could cause these errors
thanks
rifki