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
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
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
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
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 did not. i got
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 the
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
[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
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
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
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 file.txt
-
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.txt,FTP_ASCII). I am getting errors because of the
space in the
remote filename. I
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 fails. I
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
]
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
server's permission to write the file to /web/.
/* Chris Lambert, CTO - [EMAIL
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 someone please help
: [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 transferred ahead of
time,
you can manually create them from FTP
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
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
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
21 matches
Mail list logo