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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache 1.3.x, PHP 4.x, and XP. Displaying PHP as text.

Status
Not open for further replies.

kasuals

Programmer
Apr 28, 2002
100
US
Hey all,

This is about the 900th time I've installed PHP and Apache together on an XP box, but for whatever reason I am overlooking something, and I need some help.

For whatever reason, index.php is displayed as a text file. For instance:

<? phpinfo(); ?>

is displayed instead of parsing the .php extension.

AddType is in my httpd.conf, and PHP is loaded (or at least it says it is when Apache loads) and I haven't had any real errors.

Any ideas?

Thanks ahead of time.

- &quot;Delightfully confusing...&quot; raves The New York Times

-kas
 
Try opening your php as follows:

<?php phpinfo(); ?>

Ensure in httpd.conf you have DirectoryIndexset up to recognize index.php.

Also,
You might not have php configured to (php.ini) to allow short open tags. Also look at engine directive. it should be set to on (allows php scripting language engine under apache)

Hope this helps!

[cheers]
Cheers!
Laura
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top