Ive got this small script which caches a web page. It names the file with a unique ID which is all fine but I need it to name it with the unique ID but with a HTML extention.
How would I do this?
Heres my script...
<?php $page = file_get_contents('http://www.google.com'); $num = md5(uniqid()); $filename = $num; file_put_contents($filename,$page); ?>