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:
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
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
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,
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
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-
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
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
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
14 matches
Mail list logo