FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 5th, 2004, 03:58 PM
grfxguru's Avatar
grfxguru grfxguru is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Houston, TX
Posts: 33 grfxguru User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 29 m
Reputation Power: 6
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 ...

Reply With Quote
  #2  
Old April 6th, 2004, 02:41 AM
kicken's Avatar
kicken kicken is offline
Wiser? Not exactly.
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: May 2001
Location: Ft Myers, FL
Posts: 4,124 kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)kicken User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1Folding Points: 115670 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 1 Month 2 Weeks 6 Days 9 h 6 m 13 sec
Reputation Power: 535
Send a message via ICQ to kicken Send a message via AIM to kicken Send a message via MSN to kicken
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://wiser.aoeex.com/ - Long term project (offline due to evil crawlers and lack of content)
http://www.aoeex.com/gmap.php - Put yourself on the map

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Unable to find ftpbuf 1 in /path/to/script ???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway