ftp - PHP: ftp_connect - get any error details -


I am trying to connect to remote server with ftp_connect and it incorrectly returns to this particular server at all times .

Is there a way to get the details of the error? I tried:

  error_get_last ();  

Also

  ini_set ('display_errors', 1); Error_reporting (E_ALL | E_STRICT);  

But was it not working any advice? According to PHP docs, "Returns an FTP stream on error or failure on error", therefore, true result for false connection error is

There are things to look at port numbers, firewalls which can block the connection, IP address blocking etc.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -