php not working with xampp, calling it from javascript returns full php source -


i'm making html5 web netbeans. when load page, call php function:

    <?php     echo "ok";     ?> 

and show message returned on window.alert(), instead of showing "ok", shows full source of php file.

this example, happen when try connect sqlserver database, doesn't anything.

i guess apache xampp isn't working properly(in fact, when try execute php file directly, "can't connect localhost" page). have tried lot of things , modified apache' configuration archives many times still nothing. don't know doing wrong(something forget install?) appreciate help.

pd: i'm spanish, sorry if have write stupid.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -