j4v1 Posted June 3, 2008 Share Posted June 3, 2008 When I try to open or preview a php page, it displays the code on the browser and not executing the script. Link to comment https://forums.phpfreaks.com/topic/108598-solved-php-files-display-script-on-screen-instead-of-executing/ Share on other sites More sharing options...
jonsjava Posted June 3, 2008 Share Posted June 3, 2008 do you have PHP (properly) installed? Link to comment https://forums.phpfreaks.com/topic/108598-solved-php-files-display-script-on-screen-instead-of-executing/#findComment-556932 Share on other sites More sharing options...
DarkWater Posted June 3, 2008 Share Posted June 3, 2008 I just realized what was wrong (so you can ignore my PM). You can't open it in the browser with like, File > Open, or double clicking it. You need to go to localhost/file.php and do it, after making sure that the file is in the correct path. Link to comment https://forums.phpfreaks.com/topic/108598-solved-php-files-display-script-on-screen-instead-of-executing/#findComment-556933 Share on other sites More sharing options...
j4v1 Posted June 3, 2008 Author Share Posted June 3, 2008 Aaarggh! I just uninstall xampp. I'm gonna reinstall it now. Link to comment https://forums.phpfreaks.com/topic/108598-solved-php-files-display-script-on-screen-instead-of-executing/#findComment-556941 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.