Help with fopen please.

From: Date: Wed, 31 Jul 2002 23:26:28 +0000
Subject: Help with fopen please.
Groups: php.general 
Request: Send a blank email to php-general+get-110595@lists.php.net to get a copy of this message
Looked in the archive and manual and came up with no luck, so here it goes. My end result is to save the output of a PHP script as an HTML file in a specified directory on a WIN2K server. my script is such... <? PHP function save_archive(){ $filename = "http://myserver.net/extranet/archive.php?jobid=1"; $fd = fopen( $filename, "r" ); $fd2 = fopen("ftp://me:pw@myserver.net/extranet/test2.html", "w"); while (!feof($fd)) { $line = fgets($fd, 1024); fputs($fd2,$line); } fclose($fd); fclose($fd2); } ?> I'm having a terrible time getting this to work. Is there a better way? Or can someone point me toward or post an example of some working function I could study??? Thanks so much my friends! - NorhthBayShane

« previous php.general (#110595) next »