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 March 15th, 2003, 01:27 AM
klassicd klassicd is offline
Player
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: San Diego
Posts: 28 klassicd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 15 sec
Reputation Power: 0
Send a message via AIM to klassicd
errors with ftp_get

Hey everyone. The manual doesnt go into much detail and no one seems to know much about ftp_get. Ill try my luck here.

PHP Code:
 $localfile "/path/to/file/local.txt";
$remotefile "/path/to/file/file.php";
$getback ftp_get($this->connector$localfile$remotefileFTP_ASCII); 


The problem seems to be with $localfile. It keeps given me this error:
ftp_get(): error opening /path/to/file/local.txt

Ive tried everything I could think of. I tried creating local.txt and I got the same warning. Then I tried creating it and chmod it 777. Same warning. I tried making $localfile and file handle and I got the same warning. Anyone know how this is supposed to work?

Reply With Quote
  #2  
Old March 15th, 2003, 02:19 AM
draelon draelon is offline
Dissident
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Mar 2003
Location: New York
Posts: 1,671 draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 8 h 8 m 13 sec
Reputation Power: 45
local file isn't a file, it's the location of where ftp_get will place the downloaded file. I would suggest making sure the permissions on the directory it is trying to write to are set properly.

Reply With Quote
  #3  
Old March 15th, 2003, 04:23 PM
klassicd klassicd is offline
Player
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: San Diego
Posts: 28 klassicd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 15 sec
Reputation Power: 0
Send a message via AIM to klassicd
Yep tried that. Still doesn't work. Frustrating.

Reply With Quote
  #4  
Old March 15th, 2003, 04:27 PM
draelon draelon is offline
Dissident
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Mar 2003
Location: New York
Posts: 1,671 draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level)draelon User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 8 h 8 m 13 sec
Reputation Power: 45
did you try writing a normal file to that directory via php? if the problem is not limited to ftp, then it's a permissions issue, if it writes with no problem, then something is wrong with your ftp_get() line.

Reply With Quote
  #5  
Old March 15th, 2003, 04:45 PM
klassicd klassicd is offline
Player
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: San Diego
Posts: 28 klassicd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 15 sec
Reputation Power: 0
Send a message via AIM to klassicd
Well i think I found my problem

"Warning: SAFE MODE Restriction in effect. The script whose uid is 564 is not allowed to access /var/www/html owned by uid 0"

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > errors with ftp_get


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 2 hosted by Hostway