|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Unable to find ftpbuf 1 in /path/to/script ???
I've only been experiencing this problem in the past week or so. Everything worked fine previously with the code in place. I've done several searches accross the web and found no answers so ... anybody know how to fix this?
####################################### if(isset($rem)){ // Setup FTP connection $ftpid = ftp_connect("ftp.host.com") or die("Unable to connect"); // Logon to FTP connection ftp_login($ftpid, "user", "pass") or die("Unable to login to FTP server"); // Set PASV mode ftp_pasv($ftpid,TRUE); // Delete the file clicked ftp_delete($login, "path") or die("Unable to remove file"); // Close FTP connection $quit = ftp_quit($ftpid); } ####################################### I only receive the 'ftpbuf' error on the `ftp_delete` line? Any help is greatly appreaciated ... ![]() |
|
#2
|
||||
|
||||
|
Code:
// Delete the file clicked
ftp_delete($login, "path")
or die("Unable to remove file");
Where is $login coming from and what is it? Perhaps you want $ftpid instead?
__________________
Spidermonkey Tutorial http://www.aoeex.com/gmap.php - Put yourself on the map |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > Unable to find ftpbuf 1 in /path/to/script ??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|