W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 2000

Re: beginner:php scripts,header attached to output Why?

From: Yves Lafon <ylafon@w3.org>
Date: Mon, 29 May 2000 14:46:30 +0200 (MET DST)
To: Hariharan Jayaram <hari@tiger.3dem.bioch.bcm.tmc.edu>
cc: www-jigsaw@w3.org
Message-ID: <Pine.GSO.4.21.0005291428080.15553-100000@tarantula.inria.fr>
On Thu, 4 May 2000, Hariharan Jayaram wrote:

> Hi I am a beginner to Jigsaw server and php.
> I got php and Jigsaw configured to work together to create a new
> extension. 
> Using instructions I found at http://www.circle.ch
> However the php script although it works well and produces output, the
> server always attaches the header to the output.
> Hence I have my php file as 
> 
> <HTML>
> <HEAD>
> <TITLE> Hello Date program</TITLE>
> </HEAD>
> <BODY>
> TODAYS DATE: <? print(Date("1 F d, Y")); ?>
> </BODY>
> </HTML> 
>  
> AND when I say 
> http://localhost:8001/hello.php3
> I get the following output
> 
> Content-type: text/html TODAYS DATE: 1 May 04, 2000
> 
> Why is the content/typw header automatically attached to my output. How
> can I prevent this
> ANy help will be greatly appreciated

What are the settings of your CgiFrame?
Mine are:
No Header      : false
Generates Form : true
Remote Host    : false
Debug          : false

with the "interpreter" setup the right way, which should be the case
already.

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Monday, 29 May 2000 08:50:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:34 GMT