Anyway, I've been using ConTEXT editor sejak kebelakangan ini. Quite good and fast for editing PHP/xHTML/CSS/Java or any other languages including mySQL
Kate (KDE's Advanced Text Editor) is by far the best, and most powerful PHP editor available today. What's more, it's free with every installation of KDE.
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.