views:

262

answers:

1

Hi,

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?

+1  A: 

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.