title: Is it possible to run PHP on a .js page?
body: <p>So far no luck experimenting. I need to run a php function to check a header (from my understanding not possible through js), but the page needs to be a .js as it is being access by other pages as  and it was requested to keep it like that.</p>
  
  <p>I won't be to shaken up if I can't run PHP directly in the page though, theres always other ways.  I just wanted to see if there was a simple way.</p>
  
  <p>EDIT: This is all run on a server. Sorry, I didn't clarify that. (not this big of a noob mistake)</p>