|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
getimagesize cgi header error
This has got me stumped.
I am runnign more than one php environment with different versions of php at different locations. Test Box1: ver 4.3.10 Test Box2: ver 4.4.2 Live Box: ver 4.4.2 When I run getimagesize on test box 2 I get an error : CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: On the other two installs it works fine - this can only be a config problem with Test Box2 - can anyone point me in the right direction to solve this or does anyone know where I can start looking for differences in install - php_info maybe? Thanks very much. filf |
|
#2
|
|||
|
|||
|
RE: getimagesize cgi header error
I have started to do a comparison of the php_info for the server online which works [GOODVER] and the local test server [BADVER] which fails - both r running php 4.4.2.
The first huge difference on my [BADVER] there is no configure command used for the install. [GOODVER] displays the following: './configure' '--prefix=/usr/local' '--enable-bcmath' '--with-freetype-dir' '--enable-ftp' '--with-mysql=/usr' '--with-mssql=/usr/local' '--with-mcrypt=/usr/local/lib/libmcrypt' '--with-zlib-dir=/usr/local' '--with-pspell' '--with-curl' '--with-imap=/usr/local/imap-2002e' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-libdir=/usr/lib' '--with-ttf' '--with-xml' '--enable-xslt' '--with-xslt-sablot' '--with-sablot-js' '--enable-mbstring' '--with-config-file-path=/usr/local/bin' '--with-pear' '--with-openssl' '--enable-pcntl' Could something in here be causing this issue: '--with-gd' '--with-jpeg-dir' - - I thought getimagesize did not require any additional libraries. Within gd the following is set: JPG Support enabled. I will run a test installing GD on [BADVER] to see if this fixes it. Looking at the manual I also came across this: "Beginning with PHP 4.3.0, getimagesize() also returns an additional parameter, mime, that corresponds with the MIME type of the image. This information can be used to deliver images with correct HTTP Content-type headers:" Could there be a setting related to my [BADVER] webserver: IIS that is related to MIME types to cause the error: The specified CGI application misbehaved by not returning a complete set of HTTP headers |
|
#3
|
|||
|
|||
|
RE: getimagesize cgi header error
Okay - Installed gd - no change although I thought it was a long shot - although the manual does clearly say:
Note: The getimagesize() function does not require the GD image library. Has no-one ever run into this problem before - getimagesize is core php functionality. Why would this run on Windows/IIS with PHP 4.3.10, run on Linux/Zeus with PHP 4.4.2 and FAIL on Windows/IIS with PHP 4.4.2. Please does anyone have any clues - even the slightest idea? |
|
#4
|
|||
|
|||
|
RE: getimagesize cgi header error
I removed and reinstalled php - this still did not solve the issue - still getting the same error? Does anyone have any ideas - why would there be a cgi header error when using getimagesize?
|
|
#5
|
|||
|
|||
|
RE: getimagesize cgi header error
Okay - I found a solution - but it does not actually explain anything except that there could be a bug with the combination of getimagesize, php 4.4.2 and IIS 5.1.
I downgraded the version running on the local test box - to php 4.4.0. WOW - suddenly getimagesize works - this is after comparing all php_infos from the boxes and not finding any outstanding differences - as well as a comparison of different versions of IIS 5.1 configuration. A little bit dismayed that after 5 days there was not a single response / comment with regard to my posts and for the second time on this forum I have solved my own issues through repeated testing and stubborness to not walk away and leave the issue unresloved. Hmmm ... ! |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > getimagesize cgi header error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|