title: Check if file is being run on server
body: <p>I have a html file which has a link to php file. When i run the html file and click on php link source code of page is being shown as i'm not running on server. Is there a way we can check whether it is running on server and show a message like "Please run it on server" instead of showing source code. Searched a lot but didn't find anything on this topic . How can i do this?</p>