I am familar with PHP but not so much with CGI. There is a page that I would like to get the contents from (specifically one that has just a jpg image) that has the extension .cgi
My question: is there a way to get the contents(or image) from a CGI page using PHP? Using file_get_contents($url) and imagecreatefromjpeg($url) gives me an error that says it failed to open the stream however I am able to right click on the image and save it as a jpg. I assume that is because the browser can recognize it as an image.
EDIT: My problem might be that the connection is just timing out.
Other cgi pages that I have tried getting using file_get_contents and curl have worked for me. It seems that just this particular page doesn’t work for some reason. I assume that it is just a connection issue that prevents me from doing so.