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
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**
// 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
3 matches
Mail list logo