Do any of your php pages show as "proper webpages" in FF? It's just possibel that the Apache webserver, although installed, is not on. I am not familiar with WAMP (I use XAMPP), but I assume it has a control panel - check to see if Apache is on.
In addition, perhaps it would be useful to check your hosts and vhosts files - usually something like this):
C:\xampp\apache\conf\extra\httpd-vhosts.conf (yours will probably be under some sort of wamp directory).
The hosts file (note no file extension) should contain something like:
@ardav : i have installed xampp now, thought that something's wrong with wamp. but everything is still the same. i have checked those files, the one in win32 is okay, but i can't find "NameVirtualHost 127.0.0.1" in httpd-vhosts.conf. what should i do? anyway, i installed xampp in c/program files/xampp not in c/xampp, is it okay? and i can run simple php file like that hello world.
@rokape : yes, it works. seems nothing's wrong with my php installed here. thanks for your response.
@sam023, manus : they all don't work, still leads to a blank page :(
guys, today i tried to install the same wamp in other PC. and surprisingly, it works there!! guess the wrong thing is my PC now, or maybe the setting of the apache or php. do you have any ideas?
Try uninstalling WAMPServer and reinstalling it. Sometimes a bad download leaves PHP handicapped. Also check if the PHP version is the newest one.
Also, even if you have the server online you might have not started the services properly. Check all that just to make sure. Other than that, your code works fine (if you have also followed guidelines by the previous posters as well).
guys, i know this sounds strange. but that header finally works after i added php in <?php
haha, i don't know that the word "php" will affect that much.
anyway, thx so much guys. in return, i would like to help you if you have some problem with cpp, i love programming in cpp :)
once again, thanks so much all.
it can be possible that short tags are off in php.ini. So Try once the above code.!!