How do I use fopen() to overwrite a remote file via ftp?

From: Date: Tue, 09 Apr 2002 01:40:49 +0000
Subject: How do I use fopen() to overwrite a remote file via ftp?
Groups: php.general 
Request: Send a blank email to php-general+get-92152@lists.php.net to get a copy of this message
Hi, I want to use fopen to connect to a remote server via ftp and overwrite a file like ... fopen("ftp://username:password@www.domain.com/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?

« previous php.general (#92152) next »