Help please!
I'm trying to dump the contents of a remote web page to disk. I've seen an example of how to do this using fputs but I can't get it to work. Here it is:
$fp = fopen ("file/to/dump/to", "w");
fputs ($fp, readfile("http://theurl.com"));
fclose ($fp);
The dump file is created but it doesn't contain the HTML source, instead it contains a number?
What am I doing wrong?
Thanks, Simpleton