Why my PHP code is not displaying on the page?

  • Thread starter Thread starter Mamdouh A
  • Start date Start date
M

Mamdouh A

Guest
I have installed Apache and PHP on my machine. I can see the "It works" page. couldn't modify it first (Stupid Vista) then I got it to save ok. When i write a php code in the "test.php" using Dreamweaver it doesn't show it on the page on the localhost.
Also in dreamweaver i get something looks like an anchor with PHP written in it.
Please help.
Thanks
The "Its working" page is HTML. I have created a test.php file and put it next to index.html on my localhost.
In the test.php if I write html code, its fine. I can see the results. But when I use <?php CODE ?> whatever is inside it, it will not be displayed. I even copied a code from the net to display the time and it didn't work.
So, the test.php is fine and working but I just cant see whatever I put between the <?php .... ?>.
Thanks for your reply.
 
Back
Top