Hi all,
I'm having a bit of a problem with deleting files from my server...
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user, $ftp_pass);
$url = "http://www.example.com/folder/uploads/50by50.gif";
ftp_delete($conn_id, $url);
However, I get an error:
Warning: ftp_delete(): Could not delete http://www.example.com/folder/uploads/50by50.gif: No such file or directory in /home/myuser/public_html/folder/submit.php on line 159
All the permissions are set, the file exists, but I still get this error.
Could anyone help please?
Thanks,
Mike