简体   繁体   English

PHP ftp_connect什么都不做

[英]PHP ftp_connect does nothing

I've configured a couple of php codes that connects to my server with the use of ftp connect. 我已经配置了几个使用ftp connect连接到我的服务器的php代码。 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. php代码不执行任何操作。 It executes all lines before "ftp_connect" then from that line onwards, it doesn't get processed. 它执行“ ftp_connect”之前的所有行,然后从该行开始,不对其进行处理。

It doesn't show any errors, warnings, etc on screen but the code execution from the line of "ftp_connect" just stops. 它在屏幕上不显示任何错误,警告等,但是从“ ftp_connect”行开始的代码执行只是停止。

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. 在文件顶部,或在脚本目录中检查名为error_log的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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