Re: [PHP] ftp_put: permission denied
Well, how to I get access to where I'm trying to put it? The rights already are 777. Olli Thomas Seifert schrieb: > it may be, that destiny is wrong. > the error-message tells that you don't have access to where you are trying to upload >the file to. > > Thomas > > On Wed, 08 Jan 2003 20:59:02 +0100 [EMAIL PROTECTED] (Oliver Witt) wrote: > > > I uploaded that script with a common ftp program on my server in the > > internet. > > FOr the host, user and pw, I use the same data as I use to log in with > > my ftp program. So the mistake can't be there. > > This is how that script basically works: > > > > > if(isset($destiny)){ > > $ftp_server = "host"; > > $benutzername = "user"; > > $passwort = "pw"; > > $connection_id = ftp_connect("$ftp_server"); > > $login_result = ftp_login($connection_id, "$benutzername", "$passwort"); > > > > $upload = ftp_put($connection_id, $destiny, $local_file, FTP_ASCII); > > if (!$upload) { > > echo "It didn't work";} > > else { > > echo "It did work";} > > ftp_quit($connection_id);} > > ?> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > "Timothy Hitchens )" schrieb: > > > > > Using ftp_login() ?? > > > > > > Timothy Hitchens (HiTCHO) > > > Open Platform Consulting > > > e-mail: [EMAIL PROTECTED] > > > > > > > -Original Message- > > > > From: Oliver Witt [mailto:[EMAIL PROTECTED]] > > > > Sent: Thursday, 9 January 2003 5:30 AM > > > > To: [EMAIL PROTECTED]; Timothy Hitchens ) > > > > Subject: Re: [PHP] ftp_put: permission denied > > > > > > > > > > > > "Timothy Hitchens )" schrieb: > > > > > > > > > I am assuming you have testing from a desktop client. > > > > > > > > > > Are you sure that the PHP script has been logged in?? > > > > > > > > > > Can you see via a log file of the successful authentication?? > > > > > > > > > > > > > I logged in using the same information as I used to upload > > > > that script. > > > > > > > > if ((!$conn_id) || (!$login_result)) { > > > > echo "Not logged in"; > > > > die; > > > > } else { > > > > echo "Logged in"; > > > > } > > > > > > > > That script returned Logged in. > > > > Olli > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ftp_put: permission denied
it may be, that destiny is wrong. the error-message tells that you don't have access to where you are trying to upload the file to. Thomas On Wed, 08 Jan 2003 20:59:02 +0100 [EMAIL PROTECTED] (Oliver Witt) wrote: > I uploaded that script with a common ftp program on my server in the > internet. > FOr the host, user and pw, I use the same data as I use to log in with > my ftp program. So the mistake can't be there. > This is how that script basically works: > > if(isset($destiny)){ > $ftp_server = "host"; > $benutzername = "user"; > $passwort = "pw"; > $connection_id = ftp_connect("$ftp_server"); > $login_result = ftp_login($connection_id, "$benutzername", "$passwort"); > > $upload = ftp_put($connection_id, $destiny, $local_file, FTP_ASCII); > if (!$upload) { > echo "It didn't work";} > else { > echo "It did work";} > ftp_quit($connection_id);} > ?> > > > > > > > > > > > > > > > > > > > "Timothy Hitchens )" schrieb: > > > Using ftp_login() ?? > > > > Timothy Hitchens (HiTCHO) > > Open Platform Consulting > > e-mail: [EMAIL PROTECTED] > > > > > -Original Message- > > > From: Oliver Witt [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, 9 January 2003 5:30 AM > > > To: [EMAIL PROTECTED]; Timothy Hitchens ) > > > Subject: Re: [PHP] ftp_put: permission denied > > > > > > > > > "Timothy Hitchens )" schrieb: > > > > > > > I am assuming you have testing from a desktop client. > > > > > > > > Are you sure that the PHP script has been logged in?? > > > > > > > > Can you see via a log file of the successful authentication?? > > > > > > > > > > I logged in using the same information as I used to upload > > > that script. > > > > > > if ((!$conn_id) || (!$login_result)) { > > > echo "Not logged in"; > > > die; > > > } else { > > > echo "Logged in"; > > > } > > > > > > That script returned Logged in. > > > Olli > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ftp_put: permission denied
I uploaded that script with a common ftp program on my server in the internet. FOr the host, user and pw, I use the same data as I use to log in with my ftp program. So the mistake can't be there. This is how that script basically works: It didn't work";} else { echo "It did work";} ftp_quit($connection_id);} ?> "Timothy Hitchens )" schrieb: > Using ftp_login() ?? > > Timothy Hitchens (HiTCHO) > Open Platform Consulting > e-mail: [EMAIL PROTECTED] > > > -Original Message- > > From: Oliver Witt [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, 9 January 2003 5:30 AM > > To: [EMAIL PROTECTED]; Timothy Hitchens ) > > Subject: Re: [PHP] ftp_put: permission denied > > > > > > "Timothy Hitchens )" schrieb: > > > > > I am assuming you have testing from a desktop client. > > > > > > Are you sure that the PHP script has been logged in?? > > > > > > Can you see via a log file of the successful authentication?? > > > > > > > I logged in using the same information as I used to upload > > that script. > > > > if ((!$conn_id) || (!$login_result)) { > > echo "Not logged in"; > > die; > > } else { > > echo "Logged in"; > > } > > > > That script returned Logged in. > > Olli > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] ftp_put: permission denied
Using ftp_login() ?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Oliver Witt [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 5:30 AM > To: [EMAIL PROTECTED]; Timothy Hitchens ) > Subject: Re: [PHP] ftp_put: permission denied > > > "Timothy Hitchens )" schrieb: > > > I am assuming you have testing from a desktop client. > > > > Are you sure that the PHP script has been logged in?? > > > > Can you see via a log file of the successful authentication?? > > > > I logged in using the same information as I used to upload > that script. > > if ((!$conn_id) || (!$login_result)) { > echo "Not logged in"; > die; > } else { > echo "Logged in"; > } > > That script returned Logged in. > Olli > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ftp_put: permission denied
"Timothy Hitchens )" schrieb: > I am assuming you have testing from a desktop client. > > Are you sure that the PHP script has been logged in?? > > Can you see via a log file of the successful authentication?? > I logged in using the same information as I used to upload that script. if ((!$conn_id) || (!$login_result)) { echo "Not logged in"; die; } else { echo "Logged in"; } That script returned Logged in. Olli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] ftp_put: permission denied
I am assuming you have testing from a desktop client. Are you sure that the PHP script has been logged in?? Can you see via a log file of the successful authentication?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Oliver Witt [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 9 January 2003 4:53 AM > To: [EMAIL PROTECTED] > Subject: [PHP] ftp_put: permission denied > > > Hi, > I am running a really simple php script to upload files on my > server via ftp. But it always return this warning: ftp_put(): > Permission denied I can't have to do anything with CHMOD can > it? I mean it's ftp!! I don't know what else it is but I > guess it's a pretty common problem. Thx for any help, Olli > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ftp_put: permission denied
Hi, I am running a really simple php script to upload files on my server via ftp. But it always return this warning: ftp_put(): Permission denied I can't have to do anything with CHMOD can it? I mean it's ftp!! I don't know what else it is but I guess it's a pretty common problem. Thx for any help, Olli -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php