|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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:
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? |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
|||
|
|||
|
Yep tried that. Still doesn't work. Frustrating.
|
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
|||
|
|||
|
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" |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > errors with ftp_get |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|