In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Dalton Hunter) wrote:

> Hi, I want to use fopen to connect to a remote server via ftp and overwrite
> a file like ...
> fopen("ftp://username:[EMAIL PROTECTED]/system/path/to/file.php";, "w")
> ... but after connecting I get the "Warning: File already exists" error
> message and it fails. What is the proper way to overwrite it?

By using the FTP functions, not fopen (quote from <>: 
"HTTP connections are read-only; you cannot write data or copy files to an 
HTTP resource").

The example on the FTP chapter's intro page <> 
demonstrates how.


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to