PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 26th, 2006, 01:30 PM
filf filf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 18 filf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m
Reputation Power: 0
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

Reply With Quote
  #2  
Old July 28th, 2006, 09:06 AM
filf filf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 18 filf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m
Reputation Power: 0
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

Reply With Quote
  #3  
Old July 28th, 2006, 01:51 PM
filf filf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 18 filf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m
Reputation Power: 0
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?

Reply With Quote
  #4  
Old July 30th, 2006, 08:36 AM
filf filf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 18 filf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m
Reputation Power: 0
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?

Reply With Quote
  #5  
Old July 30th, 2006, 11:27 AM
filf filf is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 18 filf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m
Reputation Power: 0
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 ... !

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > getimagesize cgi header error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway