Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经配置了几个使用 ftp connect 连接到我的服务器的 php 代码。当我在本地测试它时,它工作得很好,它连接,它进入,我可以访问东西。但是当我在线上传并在那里尝试时。php代码什么都不做。它执行“ftp_connect”之前的所有行,然后从该行开始,它不会被处理。
它不会在屏幕上显示任何错误、警告等,但“ftp_connect”行的代码执行会停止。
似乎是什么问题?
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.