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:

[PHP] ftp_get() Pt2

2007-06-22 Thread Phil Curry
Oops. Forgot to mention If I use an ftp client of ftp from the command line, I can 'get' the file. This is why I thought it was my code. Thanks. -Phil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] ftp_get() problem

2007-06-22 Thread Phil Curry
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 parameters have valid values. The following e

[PHP] ftp_get() - OpenVMS - semicolon in filenames

2007-05-18 Thread Jim Moseby
I am trying to use the php ftp_* functions to access files on an OpenVMS UCX FTP server. I can log in and list the files, but I can't use ftp_get() to get any of them. Instead I get a 'file not found' back from ftp_get(). I think the problem is in OpenVMS naming conventions. OpenVMS saves files

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

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

2006-03-01 Thread Nils Reimann
Hi, i got a realy special problem with a little php work. i need some files from a z/vm ftp server over an php script. z/vm is a virtualization operating system for the ibm mainframe. my php script runs on a linux os, mountet on a z/vm guest. to test if an ftp transfer is possible i've maked some

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

[PHP] ftp_get, ftp_put problem

2006-01-20 Thread Antonis Varkas
Hi, 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 noth

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
> -Original Message- > From: Muti [mailto:[EMAIL PROTECTED]] > Sent: MiƩrcoles, 12 de Febrero de 2003 05:17 p.m. > To: [EMAIL PROTECTED] > Subject: [PHP] ftp_get() > > > I am trying to ftp_get($con,"/tmp/download.tmp","/remote/file > dir/file.t

[PHP] ftp_get()

2003-02-12 Thread Muti
I am trying to ftp_get($con,"/tmp/download.tmp","/remote/file dir/file.txt",FTP_ASCII). I am getting errors because of the space in the remote filename. I tried using "/remote/file\ dir/file.txt" as the filename, but that also fails. I also tried to ftp_chdir() to the directory first and get fil

[PHP] ftp_get giving problem

2001-09-26 Thread root
Hi, In my php program I am trying to download a file from server. My web server and file downloading server is diffrent. When use ftp_get command it is giving the result true. But the file is not there in client system. Please help me. anil [EMAIL PROTECTED] -- PHP General Mailing List (h

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
y, August 26, 2001 2:51 PM Subject: [PHP] ftp_get How exactly does ftp_get work? I tried it several times, but it always said something like Warning: error opening /web/destinationfile.html in .scriptlocation.. on line 38 line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY); Can so

[PHP] ftp_get

2001-08-26 Thread MBK
How exactly does ftp_get work? I tried it several times, but it always said something like Warning: error opening /web/destinationfile.html in .scriptlocation.. on line 38 line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY); Can someone please help me with this. -Maarten

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

[PHP] ftp_get: possible security hole?

2001-04-05 Thread Chris Ralston
Hey, guys, Apologies if I should have sent this to the dev list instead. 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 runn