Re: [PHP] ftp_get() problem

2007-06-22 Thread Tijnema
On 6/22/07, Phil Curry <[EMAIL PROTECTED]> wrote: Oops forgot that part. Yes If I use an ftp client or just command line ftp I can get the file. That's why I thought it must be my code. -Phil Curry And what about the local file? Does PHP has the rights to create the local file? Does this work:

Re: [PHP] ftp_get() problem

2007-06-22 Thread Tijnema
On 6/22/07, Phil Curry <[EMAIL PROTECTED]> wrote: New to php and this list. Googled a lot and scoured newsgroups to no avail. So now I'm here looking for an answer. Here's my offending line: $gotFile = ftp_get( $connection, $destination, $source, FTP_BINARY ); Just prior to execution all p

Re: [PHP] ftp_get from an IBM Mainframe z/vm system ?

2006-03-01 Thread Barry
Robin Vickery wrote: On 01/03/06, Nils Reimann <[EMAIL PROTECTED]> wrote: $conn_id = ftp_connect($ftp_server); $login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass"); $download = ftp_get($conn_id, "$locale", "TEST EXEC", FTP_ASCII); ftp_quit($conn_id); connection workd, but th

Re: [PHP] ftp_get from an IBM Mainframe z/vm system ?

2006-03-01 Thread Robin Vickery
On 01/03/06, Nils Reimann <[EMAIL PROTECTED]> wrote: > > $conn_id = ftp_connect($ftp_server); > $login_result = ftp_login($conn_id, "$ftp_user_name", "$ftp_user_pass"); > $download = ftp_get($conn_id, "$locale", "TEST EXEC", FTP_ASCII); > ftp_quit($conn_id); > > connection workd, but the download d

Re: [PHP] ftp_get, ftp_put problem

2006-01-20 Thread Richard Lynch
On Fri, January 20, 2006 7:26 am, Antonis Varkas wrote: > I am writing a php script to upload/download a file onto/from an FTP > Server. I manage to connect to the server, login correctly, change > directory, list all the files there but fail to get or put the file. > The documentation says that ft

Re: [PHP] ftp_get, ftp_put problem

2006-01-20 Thread Richard Davey
On 20 Jan 2006, at 13:26, Antonis Varkas wrote: I am writing a php script to upload/download a file onto/from an FTP Server. I manage to connect to the server, login correctly, change directory, list all the files there but fail to get or put the file. The documentation says that ftp_get an

RE: [PHP] ftp_get, ftp_put problem

2006-01-20 Thread Jay Blanchard
[snip] I am writing a php script to upload/download a file onto/from an FTP Server. I manage to connect to the server, login correctly, change directory, list all the files there but fail to get or put the file. The documentation says that ftp_get and ftp_put return TRUE or FALSE. In my case not

Re: [PHP] ftp_get()

2003-02-12 Thread Tom Rogers
Hi, Thursday, February 13, 2003, 9:17:17 AM, you wrote: M> I am trying to ftp_get($con,"/tmp/download.tmp","/remote/file M> dir/file.txt",FTP_ASCII). I am getting errors because of the space in the M> remote filename. I tried using "/remote/file\ dir/file.txt" as the M> filename, but that also f

RE: [PHP] ftp_get()

2003-02-12 Thread Barajas, Arturo
Chris, Wouldn't work if you urlencode the path to the file? Something like: ftp_get($con,"/tmp/download.tmp", urlencode("/remote/file dir/file.txt"), FTP_ASCII) THT -- Un gran saludo/Big regards... Arturo Barajas, IT/Systems PPG MX (SJDR) (427) 271-9918, x448 > -Original Message-

Re: [PHP] ftp_get

2001-08-27 Thread MBK
MBK" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, August 27, 2001 2:54 AM Subject: Re: [PHP] ftp_get > No, the permission problem would be local (hence the error referencing the > destination file). It has nothing to do with FTP permissions, but the web >

Re: [PHP] ftp_get

2001-08-26 Thread MBK
BK" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, August 26, 2001 11:50 PM Subject: Re: [PHP] ftp_get > It looks like you might not have permissions set for the web server to > create files in /web/... > > If you know the names of the files which will be tr

Re: [PHP] ftp_get

2001-08-26 Thread Chris Lambert
It looks like you might not have permissions set for the web server to create files in /web/... If you know the names of the files which will be transferred ahead of time, you can manually create them from FTP or your shell, then chmod them to 777. Otherwise you might be better off creating a fol

Re: [PHP] ftp_get: possible security hole?

2001-04-05 Thread Nuno Silva
hello, if the script is running as user X (without root privileges) then there is no way that the OS let user X chown file to user Y. recheck the userid the script is running as ;) if the script is running from the web server then it's userid will be www/www as you say. regards, nuno silva

Re: [PHP] ftp_get: possible security hole?

2001-04-05 Thread Rasmus Lerdorf
> It seems to me that ftp_get() is a potential security hole, or maybe we've > just got it misconfigured on our system. When a script calls ftp_get() and > transfers a file, the new file on the local system (e.g. the box running php) > is owned by the webserver. Now this would make sense if the