logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: phpInfo() does not work
Author
shroompicker



Joined: 14 Aug 2006
Posts: 6

PostPosted: Mon 14 Aug '06 1:18    Post subject: phpInfo() does not work Reply with quote

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

PostPosted: Mon 14 Aug '06 1:20    Post subject: Reply with quote

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

PostPosted: Mon 14 Aug '06 2:48    Post subject: Reply with quote

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

PostPosted: Mon 14 Aug '06 19:39    Post subject: Thanks a ton Reply with quote

Thanks a ton Steffen !! That works like a beauty !!

It has also taught me a new trick !! Very Happy
Back to top


Reply to topic   Topic: phpInfo() does not work View previous topic :: View next topic
Post new topic   Forum Index -> Other Software