Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error on using ftp_connect()

Status
Not open for further replies.

glenc175

Technical User
Sep 27, 2002
13
GB
I am trying to use FTP to transfer files (uploaded to ISP server using php upload function) to an external server (runnig Linux- with ftp guest account setup and working). I seem to be falling at the first hurdle, i.e when the script reaches 'ftp_connect("my_server")' I get the error 'Call to an undefined function ftp_connect()'
I have seached other forums about this and they say it's the PHP running without 'FTP enable' however I have also tried the same on another ISP server and get the same. I would have thought this is a common thing to do (send files by FTP) so i find it hard to believe both ISP's would not have this enabled. Any help or idea's would be much appreciated.
 
It is not common to send files by ftp through php as many web hosts may be fearful of abuse. You may have found two servers that prevent ftp through php for security reasons. Make a plain php page with 'phpinfo()' in it so that you can see if ftp support is enabled.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top