I'm trying to tidy up my error logs. When I use fopen to retrieve a file behind HTTP auth and it fails, I get the error message:
fopen: failed to open stream: No such file or directory
Is there a check I can do before using fopen to see if this would fail?
Here's an example URL: http://12345:12345@datatransfer.cj.com/datatransfer/files/products.zip