I have installed a piece of code on a website, wich includes gd functions. After debugging I came to a conclusion that the
$src = imagecreatefrompng($s);
is causing the server to respond: "Connection was reset" Even if I change the code to:
$src = @imagecreatefrompng($s);
The same error occurs. I have checked the php version, checked if gd library is installed and enabled, but everything is ok. There is nothing in the error_log. Also, the file path is all right, the file exists, and other functions can access the file (like fopen or file_get_contents), so there is no problem with the rights.
Anyone has an idea?
Edit: The file is on a local server.