TO everyone: i am a new learner to PHP. i have already installed PHP 5.1.4 installer. but the brower is still not able to recognize the .php file. All the code i write in php format in HTMl file can not be showed on web. e.g( the function i write can not work,condition sentence( if.. else.. while..) can not work). Can anydoay help me out of this problem. i have tried it for two days. but still fail. ~.~"
You might want to consider downloading wamp - It has everything you could need, apache, php, mysql, phpmyadmin. And is very easy to setup
Thank babyboy808 and To everyone: I have already installed wamp. I try to put all the file ,including the index.htm, .php file into the c:\wamp\www folder. and then click the index.html file. but nothing about php code will be showed on web. I don't know why? Are there any necessary steps i missed? Thanks
I think you have to change the extensions in the php.ini file. But just change your html extension to .php and it will show up
thank you Now the problems are completely solved. I can go to the next stage. Thank you for your help! ^.^
I'm thinking that you're opening the file from the filesystem, not via the server. In your browser URL box, use http://localhost/index.htm and see what happens...