Fatal error: Call to undefined function: ftp_conne

software development

#1

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


#2

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:


#3

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


#4

http://wiki.dreamhost.com/index.php/CURL
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?


#5

Different host.

ftp2.bom.gov.au

Thanks !

Mike Marriott