Hi,
I just tried to use PHP's FTP functions, however I received the following error.
Call to undefined function: ftp_connect()
So I thought that PHP was not built with ftp, but I checked phpinfo() and it says:
'--enable-ftp=shared'
Then I verified if the extension is loaded in php.ini, where it is not. So I added the following code:
if (!extension_loaded('ftp')) {
if (!dl('ftp.so')) {
exit;
}
}
to load it dynamically, but I get the following error:
Unable to load dynamic library /usr/lib/php4/ftp.so: cannot
open shared object file: No such file or directory
I verified the directory, "ftp.so" is not there.
Since I'm a linux newbie, my question is simple: Where do I get "ftp.so" from and why is it not there, when PHP was built with "enable-ftp"
Thanks,
Matthias