Re: [PHP] Help with fopen please.

2002-08-01 Thread eat pasta type fasta
check chmods, if the directory where you're saving the $fd2 is not 777 then it wont write, keep in mind it's a security issue however, use /tmp or instead of indicating paths in the file itself have include("file with the path to the dir") instead and put that .inc file off the reach of apache

Re: [PHP] Help with fopen please.

2002-08-01 Thread Michael Sweeney
Shane, You haven't told us what the problem is, only that you're having trouble making it work. How is it not working? One other question: I have to assume that the script is running on a different server than the one your are trying to write to (otherwise, why use ftp?) - are you sure that the ft

[PHP] Help with fopen please.

2002-07-31 Thread Shane
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... http://myserver.net/extranet/archive.php?jobid=1";; $fd = fopen( $filename, "r" );