I have a site using PHP running on GoDaddy shared Windows hosting where I run the following call to send email via a third party email service provider:
$fp = fsockopen('ssl://api.elasticemail.com', 443, $errno, $errstr, 30); fputs ($fp, $header.$data);
This works some of the time - but intermittently the following error is generated by IIS, enough to be a significant irritation to users of my service:
HTTP Error 500.0 - Internal Server Error C:\php53\php-cgi.exe - The FastCGI process exceeded configured activity timeout
Detailed Error Information
How do I stop this from happening? is there a way using Windows shared hosting to increase the FastCGI timeout to be longer?
I don't mean to be the bearer of bad news, but CGI is not supported in Windows (Plesk) hosting environments. If you absolutely require this type of functionality, you'll need to switch over to a Linux (cPanel) hosting plan which should better support this.
The commands 'fsockopen' and 'fput' are part of gdlib which is available within the Plesk environment. However you're using these commands to trigger a CGI error is what is not support as CGI is not present in any of our Windows hosting environments. Only our Linux plans will be able to support the use of CGI functions.