Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: PHP code doesn't work |
|
Author |
|
tggsun
Joined: 18 Aug 2006 Posts: 2
|
Posted: Fri 18 Aug '06 20:23 Post subject: PHP code doesn't work |
|
|
Hi All,
I'm a new user for the PHP5.x and Apache2.x.
I configed them and seems those are work. But when I submit the code below, the IE only run the html code and can not excute the php script part. Can anyone point out where the problem occured?
Thanks
TGGSUN
code:
<html>
<head><title>PHP Design</title></head>
<body bgcolor="white">
<h1> PHP Design Page </h1>
<?php phpinfo(); ?>
<p>
</body>
</html> |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7364 Location: Germany, Next to Hamburg
|
Posted: Fri 18 Aug '06 21:07 Post subject: |
|
|
Does the file has the correct extension? Windows doesn't show known extension.
How did you set the php handler in httpd.conf? |
|
Back to top |
|
tggsun
Joined: 18 Aug 2006 Posts: 2
|
Posted: Fri 18 Aug '06 22:37 Post subject: |
|
|
what do you mean the file has the correct extension? the file I saved for the testing has .html extension.
I set httpd.conf file by add two lines
loadmodule php5_module c:/php5/php5apache2.dll
addtype application/x-httpd-php .php .html |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7364 Location: Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|