I think u did not store those website files in your webserver. U need a standalone webserver in order to run the php scripts from your localhost / pc. Its not like you view the normal HTML / Static web. That one different story.
You can try :
AppServNetwork
Hope that helps.