简体   繁体   中英

ftp connection not working in browser but in cli

I am using this script to connect remote ftp site.

$conn_id = ftp_connect('test.com') or die("Couldn't connect to test.com"); 

this code working in command line, but while running from browser, its die and gives error.

Your web server does not have a network connectivity to the FTP server test.com .

You need to talk to the server administrator or your hosting provider.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM