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 Link to comment https://forums.phpfreaks.com/topic/56109-solved-stuggling-newbie/ 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. Link to comment https://forums.phpfreaks.com/topic/56109-solved-stuggling-newbie/#findComment-277146 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 Link to comment https://forums.phpfreaks.com/topic/56109-solved-stuggling-newbie/#findComment-277154 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.