I feel a little like an idiot for asking this but....
I have Apache 2.2 installed on my computer just to test my pages and scripts for my web engineering class. Whatever version of PHP that came with it is what I have installed.
I can't even get a basic Hello world thing to work. Here is the code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> </head> <body> <?php print "Hello world!"; ?> </body> </html>
The above code is loaded as a plain text document. Anyone able to tell me why?