Page 1 of 1

PHP Testing Page Problems

Posted: Thu May 27, 2010 5:44 pm
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

Re: PHP Testing Page Problems

Posted: Thu May 27, 2010 6:03 pm
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.

Re: PHP Testing Page Problems

Posted: Thu May 27, 2010 6:20 pm
by Bob45
Thank you very much.