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:
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
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
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
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
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
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
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
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
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
[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
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
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
> -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
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
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
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
>
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
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
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
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
> 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
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
23 matches
Mail list logo