Jump to content

gazolinia

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

gazolinia's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks guys. Finally I got it, I am using php-cgi instead of php as said by Daniel0. :D
  2. Hi, Both this settings default_mime and expose_php are set as required. But even now I am not seeing headers in the output. Please verify my php -i output(Attached) and help me to figure this out. Thanks, jai [attachment deleted by admin]
  3. Our application work in such a way that it gets script name from browser and run the php script as part of CGI and print the output to browser. Seems little crap right but this is how it needs to work ... Please let me know how to get things work if possible.
  4. Hi, Thanks for your kind reply . My php.ini file has default_mimetype = "text/html" ; How this need to be changed, I commented out and checked but of no use . Thanks, Jai
  5. 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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.