Looks like they were configured differently.  I have two version on alot of
my machines(Solaris) one tied into apache and one for command line.  The
configures are run independently of each other and each PHP is a seperate
instance.  I don't use your platfrom, but you should be able to build in
the option of --enable-ftp for the apache module PHP.

I'm not sure of the syntax to add in configure options after the fact,
without a rebuild, but i'm pretty sure i've seen it in the manual...

hth
Jeff



                                                                                       
                                   
                    "Chris Morrow"                                                     
                                   
                    <chris.morrow@btopen       To:     [EMAIL PROTECTED]       
                                   
                    world.com>                 cc:                                     
                                   
                                               Subject:     [PHP-INST] PHP with FTP 
support on a Raq4 Server              
                    10/25/2002 08:40 AM                                                
                                   
                                                                                       
                                   
                                                                                       
                                   




Hi People,

I am running PHP 4.1.2 on a Cobalt Raq4 server. I'm pretty new to Linux and
can't understand why the server has come preinstalled with 2 diffrent
versions of PHP. When I run phpinfo() from scripts on the site through my
browser it says PHP is installed as an Apache module, but when I run it
from
the command line it still has the same version number but says its a CGI
install.

I'm trying to use the ftp_connect() function in a script that is run from
the command line, ie. the CGI version and everytime I run it it says 'Call
to undefined function ftp_connect()' yet when I run it through the browser
on my site which is running the same version of PHP just the Apache module
it works fine.

Does anyone know what causes this strange behaviour or what I can do to get
my ftp_connect() function working from the command line on a Raq4 server?

Thanks for any help.

Chris Morrow



--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to