at your service, asher ;)
keydet, copy wouldn't do the trick, because it will copy the actual source of the .php file, not the parsed result.
pornanza, that's basically the idea, but the fwrite for the html tags would generate errorous html, because the parsed result already contains the tags.
PHP Code:
//open page
$fd=fopen("http://www.server.com/galleries.php","r");
//retrieve contents (eof won't work with remote filereading)
while ($line=fgets($fd,1000))
{
$alltext.=$line;
}
fclose ($fd);
//open local file (or create if doesn't excist, check for correct
//permissions in dir, pointer set to begin of file
$out = fopen("galleries.html", "w");
//write retrieved content
fwrite($out, $alltext);
fclose($out);
^ the used code, enjoy
