1

我已经配置了几个使用 ftp connect 连接到我的服务器的 php 代码。当我在本地测试它时,它工作得很好,它连接,它进入,我可以访问东西。但是当我在线上传并在那里尝试时。php代码什么都不做。它执行“ftp_connect”之前的所有行,然后从该行开始,它不会被处理。

它不会在屏幕上显示任何错误、警告等,但“ftp_connect”行的代码执行会停止。

似乎是什么问题?

4

1 回答 1

1

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.

于 2009-12-23T19:43:09.900 回答