For reasons too complicated to explain I would like to read the contents of a page generated "on the fly" using PHP with mySQL to save as an archive file. Simple code:
$url='blanca.html';
$str = file_get_contents($url);
echo $str;
works great with standard HTML files but
$url='mypage.php?myref=66';
$str = file_get_contents($url);
echo $str;
just brings up blank page.
Well out of my depth here so be kind with your comments and very simple with your help
Alternatively is there a simple way of making the PHP page save automatically?
$url='blanca.html';
$str = file_get_contents($url);
echo $str;
works great with standard HTML files but
$url='mypage.php?myref=66';
$str = file_get_contents($url);
echo $str;
just brings up blank page.
Well out of my depth here so be kind with your comments and very simple with your help
Alternatively is there a simple way of making the PHP page save automatically?