GrayFox12 Posted October 16, 2007 Share Posted October 16, 2007 Hey guys my headers for handling my site will not work, they work when using apache but now using iis they come up with the error: CGI ERROR The specified CGI application misbehaved by not returning a complete set of HTTP headers. I dont know what this means please help Cheers Quote Link to comment https://forums.phpfreaks.com/topic/73404-php-headers-come-up-with-error-and-dont-work-using-iis-server/ Share on other sites More sharing options...
kenrbnsn Posted October 16, 2007 Share Posted October 16, 2007 Please post some code. Ken Quote Link to comment https://forums.phpfreaks.com/topic/73404-php-headers-come-up-with-error-and-dont-work-using-iis-server/#findComment-370374 Share on other sites More sharing options...
GrayFox12 Posted October 17, 2007 Author Share Posted October 17, 2007 header ('Location: http://localhost:82/SLR/index.php?option=p&id='.$id.'') ; one of the headers i am using. This works fine using apache. So could be to do with iis Quote Link to comment https://forums.phpfreaks.com/topic/73404-php-headers-come-up-with-error-and-dont-work-using-iis-server/#findComment-371193 Share on other sites More sharing options...
MadTechie Posted October 17, 2007 Share Posted October 17, 2007 may be useful (but i don't know) Errors may occur when you run CGI applications on a fast multi-processor computer that is running IIS 5.0 and IIS 6.0 http://support.microsoft.com/default.aspx?scid=kb;EN-US;884764 OR Try creating the "\Temp" folder in your root directory and share access to all (guest) users. (its used for caching.. so i hear) Quote Link to comment https://forums.phpfreaks.com/topic/73404-php-headers-come-up-with-error-and-dont-work-using-iis-server/#findComment-371199 Share on other sites More sharing options...
Branden Wagner Posted October 17, 2007 Share Posted October 17, 2007 Look at the ending "quotes" header ('Location: http://localhost:82/SLR/index.php?option=p&id='.$id.''); try changing them header ('Location: http://localhost:82/SLR/index.php?option=p&id='.$id) ; why are you concatenating that last quote symbol (") ? i see no reason for it to be there based on this little snippet. Apache may have ignored it, but IIS is... not as smart. Quote Link to comment https://forums.phpfreaks.com/topic/73404-php-headers-come-up-with-error-and-dont-work-using-iis-server/#findComment-371248 Share on other sites More sharing options...
MadTechie Posted October 17, 2007 Share Posted October 17, 2007 its 2 single quotes, thats nothing.. as its part of the string it will have no effect.. but i guess its worth a shot.. it would make my day to see IIS fall over at such a thing.. Quote Link to comment https://forums.phpfreaks.com/topic/73404-php-headers-come-up-with-error-and-dont-work-using-iis-server/#findComment-371269 Share on other sites More sharing options...
Branden Wagner Posted October 17, 2007 Share Posted October 17, 2007 youre right it is 2 single quotes... so it REALLY should NOT make a difference.. when i read it, i read 1 double quote. but on anoter note, i agree i cant wait to see if iis stumbles on that. Quote Link to comment https://forums.phpfreaks.com/topic/73404-php-headers-come-up-with-error-and-dont-work-using-iis-server/#findComment-371273 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.