[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RaQ 4] Enabeling ftp via php
- Subject: Re: [cobalt-users] [RaQ 4] Enabeling ftp via php
- From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
- Date: Mon May 28 00:47:00 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
"Rüdiger Seemann" <r.seemann@xxxxxxxxx> wrote:
> i've got a question about how to enable the ftp-functions
> (like ftp_connect(), ftp_login(), ...) in php on a Raq 4.
> It seems, that ftp connect to the RaQ 4 via a php-script
> is not supported by default on a RaQ 4, because when i
> try to use these functions on a .php-site i get an error message,
> that says that these functions are unknown.
> My question:
> What do i have to do to enable these functions, so that ftp
> connections via a .php-site are possible?
You need to recompile (re-install PHP) with the proper configuration
options. Cobalt did not compile PHP on the RaQ4 with FTP support. The flag
that is needed is "--enable-ftp". To see the configuration options Cobalt
used create a file called phpinfo.php in one of your sites with the
following code in it:
<?php phpinfo(); ?>
Then view it from the web and look at the section labeled "Configure
Command" near the top. You'll probably want to recompile PHP with the same
options Cobalt used, plus "--enable-ftp". While you're at it you might want
to check the list of configuration options at
http://www.php.net/manual/en/install.configure.php and decide if there are
any other options you want to compile in so you don't have to recompile PHP
a few days later when you realize there's more functionality you need.
> Is there a .pkg-file, that i have to install or do i have to modify
> the php.ini? - I have no idea, so i would be very glad if you
> could help me out.
You can use your existing php.ini after re-installing PHP with FTP support.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/