Re: ftp_get and file downloads

From: Date: Tue, 06 May 2003 19:58:21 +0000
Subject: Re: ftp_get and file downloads
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-146561@lists.php.net to get a copy of this message
On Tuesday 06 May 2003 05:46, John Kaspar wrote: > Then I don't understand the warning message: > > Connected to ftp. ... .org, for user ... > Warning: ftp_get(): error opening /home/john/download/test.txt in > /home/.../www/code/backup.phtml on line 26 > Ftp transfer has failed! > > I have tried many variations of $local_file for both my winxp and linux > computers. I set the local folder "/home/john/download/" on linux to 777. The directories in the path leading up to the directory in which you wish to write/create file must have the executable bit set (this allows cd (change dir) into it). Thus /home and /home/john needs to have either g+x OR o+x (depending on the user running the script). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Serenity through viciousness. */

« previous php.general (#146561) next »