php not working on my computer

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
jariusjames
Forum Newbie
Posts: 1
Joined: Sat Feb 18, 2012 1:56 am

php not working on my computer

Post 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!
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: php not working on my computer

Post 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?
Post Reply