Fatal error: Call to undefined function: ftp_conne

Hello all,

Fatal error: Call to undefined function: ftp_connect

I am getting this error message when I try to use the PHP command;

$conn_id = ftp_connect($ftp_server)

from what I have read on the net about this problem, it is something to do with the PHP config file (which I dont have access to, as I am on a shared server).

Is there any work around ?

Kind Regards
Mike Marriott

Mike Marriott

Is there something you need to use FTP for, because you could do most things for fwrite and fopen.

EDIT: and a few system calls :slight_smile:

Warning: fopen(): URL file-access is disabled in the server configuration in

I thought I may get an error like this.

in phpinfo, I have the line,

allow_url_fopen Off Off

Mike Marriott

I’m guessing you are using HTTP file names instead of relative ones? Or are you opening a ftp connection to a different machine/host?

Different host.


Thanks !

Mike Marriott