[PHP] Help with fopen please. From: Shane (shane <email protected>)
Date: 07/31/02

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("email protected>?subject=Re:%20[PHP]%20Help%20with%20fopen%20please.&replyto=CD44D03584C7A249A3F86891B24EB8EA41A8C0 <email protected>">pw <email protected>/extranet/test2.html">ftp://me:pw <email protected>/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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php