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: phpInfo() does not work |
|
Author |
|
shroompicker
Joined: 14 Aug 2006 Posts: 6
|
Posted: Mon 14 Aug '06 1:18 Post subject: phpInfo() does not work |
|
|
Hi,
I've gone through the entire setup process on this site. Amazing stuff here for making my fav stuff work LAMP / WAMP !!
The instructions are very clear and I've configured the same on WinXP Pro very easily. However I'm trying to do the same on Windows 2000 Server (I've manually configured httpd-2.2.3-win32-x86-ssl with php-5.1.4 )and I have the following issue.
I've created a test.php file with the following code in it :
Quote: |
<html>
<?
phpInfo();
?>
<h1>It works!</h1>
<?php
echo "<p>hello world</p>";
?>
</html>
|
When I access it by going to http://localhost/test.php, the outputted HTML code is as follows :
Quote: |
<html>
<?
phpInfo();
?>
<h1>It works!</h1>
<p>hello world</p>
</html>
|
It seems that the Hello World is being processed, ie PHP seems to be working however phpInfo() is not.
Any suggestions on what I could do. |
|
Back to top |
|
shroompicker
Joined: 14 Aug 2006 Posts: 6
|
Posted: Mon 14 Aug '06 1:20 Post subject: |
|
|
BTW, I've configured the PATH variable in Windows to C:\PHP too. |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Mon 14 Aug '06 2:48 Post subject: |
|
|
What is the short_open_tag setting in your php.ini ?
short_open_tag = On
Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
Steffen |
|
Back to top |
|
shroompicker
Joined: 14 Aug 2006 Posts: 6
|
Posted: Mon 14 Aug '06 19:39 Post subject: Thanks a ton |
|
|
Thanks a ton Steffen !! That works like a beauty !!
It has also taught me a new trick !! |
|
Back to top |
|
|
|
|
|
|