简体   繁体   中英

PHP ftp_connect does nothing

I've configured a couple of php codes that connects to my server with the use of ftp connect. It works perfectly when I'm testing it locally, it connects, it goes in, i can access stuff. BUT when I upload it online and try it there. The php code does nothing. It executes all lines before "ftp_connect" then from that line onwards, it doesn't get processed.

It doesn't show any errors, warnings, etc on screen but the code execution from the line of "ftp_connect" just stops.

What seems to be the problem?

Your host probably has error reporting turned off, try turning on error reporting with

ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);

at the top of your file, or check for a file called error_log in the directory of your script.

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