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.
- 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.
- 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 "Hello, world!"; ?>