lariat1997 Posted March 15, 2007 Share Posted March 15, 2007 Hey all, Coming to the funner side of Flash and will be starting to implement PHP. I have installed PHP and Apache. I have put some simple PHP code in Dreamweaver, but when I preview it, I only see the source displayed...not what I want to see. Below is the code that is on my .php file. <?php echo date("l, F, js, Y"); ?> Can anyone tell me how to fix this? Thank you. Link to comment https://forums.phpfreaks.com/topic/42787-newbiephp-code-shows-in-my-browser-page-and-not-the-result/ Share on other sites More sharing options...
interpim Posted March 15, 2007 Share Posted March 15, 2007 sounds to me that php isn't installed correctly. check with <?php phpinfo(); ?> if that file shows nothing, then php isn't working. Link to comment https://forums.phpfreaks.com/topic/42787-newbiephp-code-shows-in-my-browser-page-and-not-the-result/#findComment-207676 Share on other sites More sharing options...
lariat1997 Posted March 15, 2007 Author Share Posted March 15, 2007 You're right. At first I tried to install PHP and Apache separately. But instead I installed WAMP and now my PHP file works. Thanks. Link to comment https://forums.phpfreaks.com/topic/42787-newbiephp-code-shows-in-my-browser-page-and-not-the-result/#findComment-207709 Share on other sites More sharing options...
mmarif4u Posted March 15, 2007 Share Posted March 15, 2007 XAMPP works fine than WAMP. Link to comment https://forums.phpfreaks.com/topic/42787-newbiephp-code-shows-in-my-browser-page-and-not-the-result/#findComment-207710 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.