I am new to php. i am using apache 2.2.3 and php 5.2.
I've had troubles installing php to my pc, but only one problem left, when i use my browser to see php files that i created, either it appears like a text

<?php
phpinfo();
?>

or it doesn't appear at all, only the html codes are the ones successfully done.
The files are saved as .php. and when i use the browser i type http://localhost/filename.php.

I appreciate any help
Thanks a lot

    PHP is serverside, so when you put the <?php and ?> tags it will make it so that nothing is seen unless you echo or print() something. If it is showing it like text, then you are doing something wrong.

      It would appear that you haven't installed PHP properly.

      Did you carefully follow the instructions in the manual?

      Did you add the necessary additional lines to the php.ini file?

        why not try wamp? It configures everything for you, and its freeware.

          Write a Reply...