Web browser only show php code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
coins
Forum Newbie
Posts: 2
Joined: Wed Jul 23, 2003 9:32 pm
Contact:

Web browser only show php code

Post by coins »

Hi,

Please help me...
After i install apache ver 1.3.14 and PHP4 at C:/php
and configure as per instruction on the doc.

I have added the code below into httpd.conf:
ScriptAlias /php/ "c:php/"
Addtype application/x-httpd-php .php .phtml
Action application/x-httpd-php "/php/php.exe"

And i have copy php4ts.dll into my folder called system32

When i try to run my test.php
with the following code as below
<?php
phpinfo();
?>

The browser show me the code itself.
I'm using Window XP Home Edition.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

...

Post by kettle_drum »

Well its hard to know how to help you as it could be a number of different problems. Here are a few suggestions though:

1) Make sure that you've followed all the install instructions properly.

2) Make sure youve copied all the required files to the require dir.

3) After editing the http.conf file you must restart apache.

4) Make sure that the page is saved as .php and not, as some people make the mistake, .php.txt
coins
Forum Newbie
Posts: 2
Joined: Wed Jul 23, 2003 9:32 pm
Contact:

thanks..

Post by coins »

thanks lad....... i'm able to start my work.
Your last solution solve my prob.
hehehe... :lol:
Post Reply