I would like to open a file from the internet and then save it on my disk. What do I write after using;
$test=fopen("www.domain.com/text.html", "r");
thanks!
Try something like:
if (($fd = fopen("c:\blah.txt", "r+")) != 0) { fwrite($fd, $test); fclose($fd); }
RW
=========================================== http://badblue.com Small footprint P2P web server for Windows,
this will do the job i guess:
$fh = fopen( \"outfile.txt\", \"w+\" ) ) fwrite( $fh, join( \"\n\", file(\"http://domain.com/text.html\") ); fclose( $fh );
without all those slashes, of course :/