Re: [PHP] Delete a file via FTP (without PHP FTP support)

2002-11-07 Thread Charles Wiltgen
Ernest E Vogelsinger wrote... > or, if you have FTP support built in: Yeah, a much better option if it's available. It isn't for me, and I can't use it as a final solution, so I'm still looking for a way to write files locally without using it. I wish PHP just gave me the ability read and write

Re: [PHP] Delete a file via FTP (without PHP FTP support)

2002-11-07 Thread Ernest E Vogelsinger
At 07:14 07.11.2002, Charles Wiltgen said: [snip] >// Delete a file via FTP >function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) { [snip] or, if you have FTP support built in: $user = '**user**

[PHP] Delete a file via FTP (without PHP FTP support)

2002-11-06 Thread Charles Wiltgen
// Delete a file via FTP function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) { $error = FALSE; // Open connection to FTP port $ftp = fsockopen($ftpServer,21); $foo = fgets($ftp); if (!ereg("^220*", $foo)) { $error = "*** Error! FTP service not r