SpiralPath Posted June 18, 2007 Share Posted June 18, 2007 I am struggling to get the most basic php code to run. here is an example of code that does not work: <?xml version="1.0" encoding="windows-1252"?> <!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"> <!-- Created on: 6/18/2007 --> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" /> <title>php Info</title> </head> <body> <p> <?php phpinfo(); echo 'this is a test'; ?> </p> </body> </html> A URL to this code is http://65.254.67.98/phpinfo.html The hosting service is ixwebhosting.com. Any help to get me past my initial hump is GREATLY appreciated! Thanks in advance! Dan Gauthier Quote Link to comment Share on other sites More sharing options...
Caesar Posted June 18, 2007 Share Posted June 18, 2007 If you don't have the server setup to parse PHP in HTML pages...then you need to rename the file extension to .php. Quote Link to comment Share on other sites More sharing options...
MasterACE14 Posted June 18, 2007 Share Posted June 18, 2007 yep I agree with Caesar, Either your webhost doesn't support PHP, or you didn't save your file as .php , here's the webhost I use, Take a look. www.nitrozone.net Regards ACE Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.