title: stop this error ftp_connect(): php_network_getaddresses: getaddrinfo failed: Temporary failu
body: <p>i keep receiving this error in my error log file :</p>
  
  <p><code>ftp_connect(): php_network_getaddresses: getaddrinfo failed: Temporary failu...</code></p>
  
  <p>i tried to catch it but no luck, it still appears there as well as another error :</p>
  
  <p><code>socket_recv(): unable to read from socket [104]: Connection reset by peer</code> for another module.</p>
  
  <p>i am aware of these errors, and i want my code to do something whenever an error happens, the 2 functions return values and tells that there is an error, but still i can't stop the php-error from getting written in my log !</p>
  
  <p>any ideas help ?</p>