Re: Problem with script halting

From: Date: Tue, 06 Apr 2004 01:53:18 +0000
Subject: Re: Problem with script halting
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-182433@lists.php.net to get a copy of this message
n.croker@azabia.co.uk (Nathan Croker) wrote in news:00f601c41a60$8ebe1120$d34eb9ac@azabianc: > Thank you for your reply. > > Yes the user has permission to execute chmod since when I access the > server using an FTP Client it works perfectly. > > - Nathan Croker > > (amazing as a result of one post, I get 6 different spam emails within > several minutes of posting!) > ----- Original Message ----- > From: "John Holmes" <holmes072000@charter.net> > To: "Nathan Croker" <n.croker@azabia.co.uk> > Cc: <php-general@lists.php.net> > Sent: Sunday, April 04, 2004 5:12 PM > Subject: Re: [PHP] Problem with script halting > > >> Nathan Croker wrote: >> >> > Can anyone tell me why the following line of code halts my entire >> > script (anything after it is not processed). >> > >> > ftp_chmod($conn, 0777, $to); >> > >> > All other ftp commands in the script work perfectly. I've tried >> > replacing '0777' with 777, 1777, in and out of "s, but it still >> > halts the script, there is nothing after the command to halt the >> > execution of the script either. echoing something directly before >> > it will appear, but echoing something directly after it does not. >> >> The command is probably failing or hanging on the FTP server. Are you >> sure the user you're connecting with has permission to execute chmod? >> >> ---John Holmes... As John has said, are you sure that the user you are connecting as - ie the user that Apache runs as - has permissions on the ftp server. It is very probable that you are connecting as another user.

« previous php.general (#182433) next »