How to run the file info.php

i had just install apache , mysql and php 5…apache is starting from localhost but how to test php ?

i created a file named as " info.php " which contain the foll code
<? php phpinfo(); ?> but i m confuse how to save it in " var/www/html/ " which is a root directory of apache and from where we can acess the info.php files by http://localhost/info.php

how to run the file info.php ?

Have your tried:

If you installed all those packages separately, you will probably need to enable the PHP5 module in apache.

how to do that ?

ya if we remove 8080 then blank page appears and if not than error

Scroll down to “Running PHP 5 as an Apache Module”: How to Install and Configure PHP 5 to Run with Apache on Windows (

Now, if your intention is just to play around with PHP and whatnot on your PC, your best bet is to use a prepared web server stack/bundle, like XAMPP

I’m going to go against the flow here - you’ve got a syntax fault.

<? php phpinfo(); ?>

You shouldnt have that space character there.

<?php phpinfo(); ?>

Now that’ll work.

thnx buddy