Re: [PHP] cgi error --- please help

2004-01-28 Thread Len Borowski
I recently had this error. Turns out that my php binary was the
CLI(command line interface only) version, not the cgi version and so it
wasn't sending the headers before parsing the php file.  You should look
at getting the right php binary.

Also, if you have a question, you don't make 2 seperate posts asking the
same question.

-Len



On Wed, 2004-01-28 at 15:17, Dale Hersh wrote:
 CGI Error
 The specified CGI application misbehaved by not returning a complete set of
 HTTP headers.
 
 I am getting this error and I can't figure out what is causing the problem.
 If I hit refresh on the broswer, the page loads just fine. Any ideas???
 
 Thanks,
 Dale
 
 RUNNING IIS 6.0  MSSQL 2000

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] cgi error --- please help

2004-01-28 Thread Gryffyn, Trevor
Odd that it would work after you hit REFRESH, though.  If it was the CLI
version, wouldn't youg et the bad headers error every time you refreshed
the browser?

Could always try manually initiating the headers using the header()
command.  That may be your own course of action if, for some reason, you
don't have access to the web server and the installation of PHP there to
upgrade it to the proper version..  Or if you just can't figure out why
it's giving you this error, header() might be a workaround.

-TG


 -Original Message-
 From: Len Borowski [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, January 28, 2004 4:52 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] cgi error --- please help
 
 
 I recently had this error. Turns out that my php binary was the
 CLI(command line interface only) version, not the cgi version 
 and so it
 wasn't sending the headers before parsing the php file.  You 
 should look
 at getting the right php binary.
 
 Also, if you have a question, you don't make 2 seperate posts 
 asking the
 same question.
 
 -Len
 
 
 
 On Wed, 2004-01-28 at 15:17, Dale Hersh wrote:
  CGI Error
  The specified CGI application misbehaved by not returning a 
 complete set of
  HTTP headers.
  
  I am getting this error and I can't figure out what is 
 causing the problem.
  If I hit refresh on the broswer, the page loads just fine. 
 Any ideas???
  
  Thanks,
  Dale
  
  RUNNING IIS 6.0  MSSQL 2000
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] CGI ERROR

2004-01-27 Thread - Edwin -
On Tue, 27 Jan 2004 18:41:39 -0800
Dale Hersh [EMAIL PROTECTED] wrote:

 CGI Error
 The specified CGI application misbehaved by not returning a
 complete set of HTTP headers.
 
 I am getting this error and I can't figure out what is causing
 the problem. If I hit refresh on the broswer, the page loads
 just fine. Any ideas???

A bug on your server? A bug on your browser? A bug on your
script? ...

--

- E -
__
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] CGI error when loading iFRAME

2003-11-15 Thread Marek Kilimajer
Miroslav I. wrote:
Hi, people

#The problem:
There is an error message that stops proper loading of one iFRAME, I
couldn't understand what is the problem.
Complete error message issued:
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
###Additional:
PHP Version 4.3.3 is running on Windows 2000 server
This is a common problem with php on iis, google for the error string to 
get possible solutions.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] CGI Error, IIS

2003-09-14 Thread Curt Zirzow
* Thus wrote nabil ([EMAIL PROTECTED]):
 Why this happen with me with IIS
 CGI Error
 The specified CGI application misbehaved by not returning a complete set of
 HTTP headers. The headers it did return are:

check your IIS logs.

Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] CGI Error, IIS

2003-09-14 Thread John W. Holmes
nabil wrote:

Why this happen with me with IIS
CGI Error
The specified CGI application misbehaved by not returning a complete set of
HTTP headers. The headers it did return are:
Although it's not a bug, read this:

http://bugs.php.net/bug.php?id=12061

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals  www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] CGI error

2001-08-10 Thread Phil Driscoll

On Thursday 09 August 2001 17:21, [EMAIL PROTECTED] wrote:
 After install PHP when I try to open in a URL the address:
 http://casa/IISSamples/Default/exemplo.php
 I receive the following error:

 Error 403 of HTTP
 403.1 Forbided: forbided execution access


First experiment:

Put a file called test.htm in the same directory which contains any old html.
Try to access that as http://casa/IISSamples/Default/test.htm

If that works OK, then the configuration of pws is wrong. I don't have PWS so 
I'm not sure of the user interface to configuring it, although if you 
installed php using the 'Installer' distribution, it will have configured PWS 
correctly.

Sometimes, PWS seems to get itself into a strage state where you can't get it 
to work no matter what you try. Some people have had success after 
reinstalling PWS. Others just dump it and use Xitami or Apache.

Cheers
-- 
Phil Driscoll

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI error

2001-08-09 Thread Phil Driscoll

On Thursday 09 August 2001 07:47, karthik wrote:
 Hi,

 I am running PHP 4.06 on Windows 2000 with IIS 5. I am running PHP in CGI
 mode.

 I seem to be getting CGI Error
 The specified CGI application misbehaved by not returning a complete set of
 HTTP headers. The headers it did return are: 


 Why is this error happening ?

Read, and follow the instructions on this matter as documented towards the 
end of the install.txt file which came with your distribution.

Cheers
-- 
Phil Driscoll

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI error

2001-08-09 Thread karthik

Hi,

In install.txt there seems to be settings on how to install under various
web servers.

There is nothing on CGI errors etc.

And i have followed the procedure which was given in install.txt for
configuring PHP.

Still this problem occurs.

Help,
Karthik.

- Original Message -
From: Phil Driscoll [EMAIL PROTECTED]
To: karthik [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 09, 2001 1:50 PM
Subject: Re: [PHP] CGI error


 On Thursday 09 August 2001 07:47, karthik wrote:
  Hi,
 
  I am running PHP 4.06 on Windows 2000 with IIS 5. I am running PHP in
CGI
  mode.
 
  I seem to be getting CGI Error
  The specified CGI application misbehaved by not returning a complete set
of
  HTTP headers. The headers it did return are: 
 
 
  Why is this error happening ?

 Read, and follow the instructions on this matter as documented towards the
 end of the install.txt file which came with your distribution.

 Cheers
 --
 Phil Driscoll

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI error

2001-08-09 Thread Phil Driscoll

On Thursday 09 August 2001 09:46, karthik wrote:
 Hi,

 In install.txt there seems to be settings on how to install under various
 web servers.

Well what about this bit:

  You have installed PHP, but when try to access a php script file via your
  browser, you get the error:
   cgi error:
   The specified CGI application misbehaved by not returning a complete set of
   HTTP headers. The headers it did return are:

   This error message means that php failed to output anything at all.
   From the command line hange to the directory containing php.exe. Run
   php.exe -i
   If php has any problems running, then a suitable
   error message will be displayed which will give you a clue as to what 
needs to
   be done next. If you get a screen full of html codes (the output of the
   phpinfo() function) then php is working ok.

   Once php is working at the command line, try accessing the php script via 
the browser again.
   If it still fails then it could be one of the following:

   file permissions on your php script, php.exe, php4ts.dll, php.ini or any 
php
   extensions you are trying to load are such that the anonymous internet user
   ISUR_machinename cannot access them.

   The script file does not exist (or possibly isn't where you think it is
   relative to your web root directory). Note that for IIS you can trap this 
error by ticking
   the 'check file exists' box when setting up the script mappings in the 
Internet Services
   Manager. If a script file does not exist then the server will return a 404 
error instead.
   There is also the additional benefit that IIS will do any authentication 
required for you
   based on the NTLanMan permissions on your script file.
-- 
Phil Driscoll

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI error

2001-08-09 Thread Steve Brett

i tend to get this error when the page being called doesn't exist.

check the link and the file name

Steve

Phil Driscoll [EMAIL PROTECTED] wrote in message
01080909463405.04245@linux">news:01080909463405.04245@linux...
 On Thursday 09 August 2001 09:46, karthik wrote:
  Hi,
 
  In install.txt there seems to be settings on how to install under
various
  web servers.

 Well what about this bit:

   You have installed PHP, but when try to access a php script file via
your
   browser, you get the error:
cgi error:
The specified CGI application misbehaved by not returning a complete
set of
HTTP headers. The headers it did return are:

This error message means that php failed to output anything at all.
From the command line hange to the directory containing php.exe. Run
php.exe -i
If php has any problems running, then a suitable
error message will be displayed which will give you a clue as to what
 needs to
be done next. If you get a screen full of html codes (the output of the
phpinfo() function) then php is working ok.

Once php is working at the command line, try accessing the php script
via
 the browser again.
If it still fails then it could be one of the following:

file permissions on your php script, php.exe, php4ts.dll, php.ini or
any
 php
extensions you are trying to load are such that the anonymous internet
user
ISUR_machinename cannot access them.

The script file does not exist (or possibly isn't where you think it is
relative to your web root directory). Note that for IIS you can trap
this
 error by ticking
the 'check file exists' box when setting up the script mappings in the
 Internet Services
Manager. If a script file does not exist then the server will return a
404
 error instead.
There is also the additional benefit that IIS will do any
authentication
 required for you
based on the NTLanMan permissions on your script file.
 --
 Phil Driscoll



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] CGI error

2001-07-24 Thread Phil Spitler

Along with help from Josh Hoover, (*thanks again Josh*), I was able to find
a fix for this problem.  There must be some sort of bug with IIS and PHP.
Everything was set up correctly and I was pointing to the correct the
correct path for the cgi .exe file.  However it didn't start working for me
until checking Check that file exists in the App Mappings.  This fixed
the problem after HOURS of troubleshooting.

Phil

 -Original Message-
 From: Phil Spitler [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 24, 2001 3:06 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] CGI error


 I am running PHP in CGI mode on win2k.  I keep getting an error when I try
 to load a PHP page.  I have 2 other servers set up exactly the same that
 work just fine.  Does anyone know what this could be?

 CGI Error
 The specified CGI application misbehaved by not returning a
 complete set of
 HTTP headers. The headers it did return are:

 Thanks!

 Phil


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI error

2001-07-24 Thread Phil Driscoll

On Tuesday 24 July 2001 20:44, Phil Spitler wrote:
 There must be some sort of bug with IIS and PHP.
 Everything was set up correctly and I was pointing to the correct the
 correct path for the cgi .exe file.  However it didn't start working for me
 until checking Check that file exists in the App Mappings.  This fixed
 the problem after HOURS of troubleshooting.

I don't think there's a bug here.
Ticking that box does two important things.
Firstly it stops the 'the specified CGI application misbehaved by not 
returning a complete set of headers' error message which is often caused by 
php not finding the script you specified because it is not there. IIS checks 
whether the script file exists, and if it doesn't, it sends a 404 error 
rather than running php.
Secondly, when it checks the file and finds that the web server does not have 
permission to read it, it sends authentication headers (or does all that NT 
authentication unpleasantness if you have it enabled) in order to attempt to 
get sufficient permission to read the file.

Basically, this is just the way IIS works. You'd get exactly the same results 
with any other cgi script interpreter.

Cheers
-- 
Phil Driscoll

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] CGI error

2001-07-24 Thread Phil Spitler

I hear what you are saying.  I just don't understand why if php.exe is where
I was telling it and permissions were all set up correctly, why it started
working after that was checked.  I did nothing else but check it and if I
understand what you are telling me, it should've given me a 404 error.

Phil

 -Original Message-
 From: Phil Driscoll [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 24, 2001 4:06 PM
 To: Phil Spitler; [EMAIL PROTECTED]
 Subject: Re: [PHP] CGI error


 On Tuesday 24 July 2001 20:44, Phil Spitler wrote:
  There must be some sort of bug with IIS and PHP.
  Everything was set up correctly and I was pointing to the correct the
  correct path for the cgi .exe file.  However it didn't start
 working for me
  until checking Check that file exists in the App Mappings.
 This fixed
  the problem after HOURS of troubleshooting.

 I don't think there's a bug here.
 Ticking that box does two important things.
 Firstly it stops the 'the specified CGI application misbehaved by not
 returning a complete set of headers' error message which is often
 caused by
 php not finding the script you specified because it is not there.
 IIS checks
 whether the script file exists, and if it doesn't, it sends a 404 error
 rather than running php.
 Secondly, when it checks the file and finds that the web server
 does not have
 permission to read it, it sends authentication headers (or does
 all that NT
 authentication unpleasantness if you have it enabled) in order to
 attempt to
 get sufficient permission to read the file.

 Basically, this is just the way IIS works. You'd get exactly the
 same results
 with any other cgi script interpreter.

 Cheers
 --
 Phil Driscoll

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI error

2001-07-24 Thread Phil Driscoll

On Tuesday 24 July 2001 21:34, Phil Spitler wrote:
 I hear what you are saying.  I just don't understand why if php.exe is
 where I was telling it and permissions were all set up correctly, why it
 started working after that was checked.  I did nothing else but check it
 and if I understand what you are telling me, it should've given me a 404
 error.

No - if you didn't get a 404 error then the file was there, but maybe the 
browser did a secret handshake with IIS to give it permission to load the 
file.

Cheers
-- 
Phil Driscoll

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI Error when processing form

2001-06-22 Thread Markus Kühni

We've got the same problem.
Did you find a resolution?

Thanks, MarkMirco


seth [EMAIL PROTECTED] wrote in message
9ej8pq$i1n$[EMAIL PROTECTED]">news:9ej8pq$i1n$[EMAIL PROTECTED]...
 Hi,
 I'm really new to PHP and i'm not too smart!...,  I pulled some from code
 out of scripts.com for processing forms just to test.

 this is on an IIS server 4.0 server

 this is the error I get after clicking on the tell us button...

 CGI Error
 The specified CGI application misbehaved by not returning a complete set
of
 HTTP headers. The headers it did return are:

 Any ideas

..



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]