Page 1 of 1

php not working on my computer

Posted: Sat Feb 18, 2012 2:20 am
by jariusjames
hi guys, i need help real bad. i've been using PHP with WAMP for almost half a year already. last night, i was playing with a test code <?php echo 'test'; ?> save it to wamp and tried running it but it didn't work. all i see was a blank white page. html codes works fine though. listed below are the things i've already done:

reinstall wamp - didnt work
reinstall PHP - same
reinstall windows 7 - same thing

im not good with setting up WAMP, XAMPP, PHP on my computer. so is there any settings, software versions(PHP), or anything that i need to make it work again? im sure i've done nothing wrong in changing any settings on my computer nor on any settings for PHP or wamp. also tried with xampp and the status (on localhost) says that my PHP was ok. i really dont know what to do. i could even see the PHP codes when i open it with IE and CHROME. as if php doesn't really exist inside my computer. NEED HELP GUYS!

Re: php not working on my computer

Posted: Sat Feb 18, 2012 8:37 pm
by califdon
Did you save the file with a filename extension of .php? (or whatever extension your Apache httpd.conf file is configured for, but by default it should be .php) And you ARE trying to use 'localhost' to serve the page, not just open it as a file, RIGHT?