Setting up PHP
Posted by: almostvindiesel
Posted on: 2008-01-06 10:27:00
I'm new to web development and php.
I'm trying to setup a basic HelloWorld php script, and I'm having trouble with it.
1) If I try executing a hello world script with a .php extension, it works. If I try with .cgi execution, I get a 500 internal server error. I've configured dreamhost per the wiki (http://wiki.dreamhost.com/PHP#PHP_on_DreamHost and ), but still no luck.
2) Can i include php scripts in regular .html (or *.*html files)? Ideally, I'd like to create regular html files and add scripts wherever necessary.
Here's the source in the file:
<?php
echo "<html><body>Hello, world!</body></html>";
?>
Thanks!
~John