kigroy Posted December 11, 2008 Share Posted December 11, 2008 i created a file using this code <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?> </body> </html> This is what browsers read when I test it locally on my machine: Hello World '; ?> What is going on? I'm using Dreamweaver 8 to edit files and save them and I open them with the Preview/Debug in browser inside Dreamweaver 8. Also please note that I'm have not installed any thing like WAMP or XAMPP. Is that the problem? Thanks! Quote Link to comment Share on other sites More sharing options...
mrdamien Posted December 11, 2008 Share Posted December 11, 2008 I open them with the Preview/Debug in browser inside Dreamweaver 8. Also please note that I'm have not installed any thing like WAMP or XAMPP. Is that the problem? Yes that is the problem. PHP files need to be parsed, otherwise your page will show your source code. Quote Link to comment Share on other sites More sharing options...
AviNahum Posted December 11, 2008 Share Posted December 11, 2008 you need to install something like WAMP... php files can be read only with a server... in dreamwaver it's shows you only the soucre code... Quote Link to comment Share on other sites More sharing options...
kigroy Posted December 12, 2008 Author Share Posted December 12, 2008 Got it fixed! Thanks.... 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.