Hi,
I have installed php as command line mode. But on running a simple script , I get output as follows without http headers. This is fine but my application needs the http header as part of printing output in console .
<HTML>
<HEAD>
<TITLE> Hello World in PHP </TITLE>
</HEAD>
<BODY>
Hello World
</BODY>
</HTML>
Previously in my old php 4.1.2 I used to get like
X-Powered-By: PHP/4.1.2
Content-type: text/html
<HTML>
<HEAD>
<TITLE> Hello World in PHP </TITLE>
</HEAD>
<BODY>
<?
// Hello world in PHP
print("Hello World");
?>
</BODY>
</HTML>
I want to get this content type as part of running >>>> php hello.php
in my newer php also, for this how I need to configure. Please guide me .
Thanks in advance ,
Jai