Re: [PHP] FTP functions

2005-03-07 Thread Tim Boring
Hello! On Mon, 2005-03-07 at 18:20 +0530, Vaibhav Sibal wrote: > Hi > I checked ou the ftp functions of PHP, what I wanted to ask was that > if I connect to a remote server and issue and ftp_fget() command the > file will be downloaded to the server running the PHP code and Apache > webserver or t

Re: [PHP] ftp functions not working

2004-09-02 Thread Michal Migurski
shell>$php -r "phpinfo();" | grep ftp Registered PHP Streams => php, http, ftp, compress.zlib shell>$ I looked at the complete output and did not see that anything else for FTP. What do I need to do add FTP support for the CLI? Just to be absolutely sure, try to use `grep -i ftp` -- the "FTP" in

Re: [PHP] ftp functions not working

2004-09-02 Thread Cory D. Wiles
I figured out why that it wasn't working. My prefix isn't the standard default prefix. I put php in /usr/local/apache/php. Though my script calls for /usr/local/bin/php...that php binary was copied there from the previous installation. Therefore, when I recompiled it was still using the 'old'

Re: [PHP] ftp functions not working

2004-09-02 Thread Pablo M. Rivas
mhhh.. try this: #!/usr/local/bin/php and look on the console if you see ftp enabled... ¿do you have only ONE PHP INSTALL IN YOUR BOX?.. or two? On Thu, 02 Sep 2004 09:43:27 -0500, Cory D. Wiles <[EMAIL PROTECTED]> wrote: > I am writing some backup scripts that will ftp my *.gz files to my ftp

Re: [PHP] ftp functions not working

2004-09-02 Thread Cory D. Wiles
Michal Migurski wrote: #!/usr/local/bin/php output when ran: 'Damn' During the make I didn't see any errors. When I ran phpinfo() [http://www.randomthoughtprocess.com/info.php] it shows that I have FTP support. Is there something that I am missing? The version of PHP you're running on the comm

Re: [PHP] ftp functions not working

2004-09-02 Thread Cory D. Wiles
Marek Kilimajer wrote: Cory D. Wiles wrote: I am writing some backup scripts that will ftp my *.gz files to my ftp server. Unfortunately I didn't originally install php with ftp support (oversight on my part). I reconfigured/installed PHP with --enable-ftp and restarted everything, but the funct

Re: [PHP] ftp functions not working

2004-09-02 Thread Michal Migurski
#!/usr/local/bin/php output when ran: 'Damn' During the make I didn't see any errors. When I ran phpinfo() [http://www.randomthoughtprocess.com/info.php] it shows that I have FTP support. Is there something that I am missing? The version of PHP you're running on the command-line may or may not

Re: [PHP] ftp functions not working

2004-09-02 Thread Jason Wong
On Thursday 02 September 2004 22:43, Cory D. Wiles wrote: > #!/usr/local/bin/php > During the make I didn't see any errors. When I ran phpinfo() > [http://www.randomthoughtprocess.com/info.php] it shows that I have FTP > support. Is there something that I am missing? You're using php-cli. What

Re: [PHP] ftp functions not working

2004-09-02 Thread Marek Kilimajer
Cory D. Wiles wrote: I am writing some backup scripts that will ftp my *.gz files to my ftp server. Unfortunately I didn't originally install php with ftp support (oversight on my part). I reconfigured/installed PHP with --enable-ftp and restarted everything, but the functions still don't work.

Re: [PHP] ftp functions

2002-01-21 Thread Jim Lucas [php]
machine. Jim - Original Message - From: "sundogcurt" <[EMAIL PROTECTED]> To: "GENERAL PHP LIST" <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 11:34 AM Subject: Re: [PHP] ftp functions > Would you suggest that I use the copy function instead? &g

Re: [PHP] ftp functions

2002-01-21 Thread sundogcurt
Would you suggest that I use the copy function instead? I have tried the copy function in a prelim test and I had trouble with the function "finding" the file on the local machine. From what I have seen in the FAQs on PHPBUILDER and this is not an uncommon problem. One possible solution was tha

Re: [PHP] ftp functions

2002-01-21 Thread Jim Lucas [php]
one problem, the ftp functions that you are trying to use are on the server. therefor you are trying to connect one "server" to another "server". you are not connecting from your workstation to the remote server. for what you are attempting to do, ftp will not work. Jim Lucas - Original Mes