PHP Testing Page Problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Bob45
Forum Newbie
Posts: 2
Joined: Wed May 26, 2010 12:09 pm

PHP Testing Page Problems

Post by Bob45 »

I'm a newbi to php and I put the
<?php
echo 'Just checking to see if it works';
?>

In a html file using dreamweaver cs4. Saved it as html.


Put it up on server and went to get it. The page came up but no PHP.

1. Was i suppose to execute or chomod it before loading it up?
2. Was I suppose to save the page as php instead of html?

Can somebody tell me what I'm doing wrong?

Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: PHP Testing Page Problems

Post by Christopher »

Bob45 wrote:In a html file using dreamweaver cs4. Saved it as html.
The file needs to be saved with a .php extension.
(#10850)
Bob45
Forum Newbie
Posts: 2
Joined: Wed May 26, 2010 12:09 pm

Re: PHP Testing Page Problems

Post by Bob45 »

Thank you very much.
Post Reply