Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attempting to call PHP's phpinfo function without success -?

Status
Not open for further replies.

WhatsintheGoodebox

Programmer
Apr 24, 2005
2
US
Hi.
I'm attempting to call PHP's phpinfo() function without sucess. I have a php file in htdocs of Apache, with the following code: <?php phpinfo();?>. When I point to the file in the web browser, I should get a page of PHP's info. Instead, I simply get the code listed in the browser. Where am I going wrong???
 
WhatsintheGoodebox,

Add the line
AddType application/x-httpd-php .php
to your httpd.conf and restart Apache.

Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top