turn on FTP on linux

crazy php has no config file or setting to enable ftp for linux
supposedly, there is a switch --enable-ftp that is selectable when
installing php, but I don't remember synaptek offering me that opportunity.

So, how do I enable ftp_put() on php5?

I'm using apache2 php5 module with linux (mepis 6.5)
the ftp server is pure-ftpd. (it works)

Thanks

~Steve~
none [ Di, 26 Juni 2007 16:32 ] [ ID #1748842 ]

Re: turn on FTP on linux

none wrote:
> crazy php has no config file or setting to enable ftp for linux
> supposedly, there is a switch --enable-ftp that is selectable when
> installing php, but I don't remember synaptek offering me that opportunity.
>
> So, how do I enable ftp_put() on php5?
>
> I'm using apache2 php5 module with linux (mepis 6.5)
> the ftp server is pure-ftpd. (it works)
>
> Thanks
>
> ~Steve~

The switch you refer to is a configuration setting for when PHP is being
built from source.
I don't know about mepis' build but in general most OSes have this
enabled at build time. To use the ftp functions look at:

http://uk2.php.net/manual/en/ref.ftp.php

--
Andrew Hutchings - LinuxJedi - http://www.linuxjedi.co.uk/
Windows is the path to the darkside...Windows leads to Blue Screen. Blue
Screen leads to downtime. Downtime leads to suffering...I sense much
Windows in you...
Andrew Hutchings [ Do, 28 Juni 2007 20:56 ] [ ID #1753677 ]
PHP » alt.php » turn on FTP on linux

Vorheriges Thema: Mail problem
Nächstes Thema: Newbie question = how to send variable form one page to the other