There is one way I know and that is mod-rewrite to hide the extensions so if I go to domain.com/apage.html mod_rewrite will change (internally) to apage.php however if there are any errors in your coding, the error style of PHP will let user know that you are using php