开发者

PHP ftp_connect does nothing

开发者 https://www.devze.com 2022-12-14 14:54 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消