Here's a question for you all. It's not really a "New User" question, but doesn't fit anywhere else, so it ends up here.
I have a php file, which contains primarily javascript code. It's called as an include into a second php file, which is opened through browsers after a form is submitted. I need to preven the javascript php file from being called directly from a browser... it can only be called as the include, and blocked from all other viewing.
What would be a good way to do this? Is there a way to block a page, but still allow it to be opened as an include, just not directly?
I have a php file, which contains primarily javascript code. It's called as an include into a second php file, which is opened through browsers after a form is submitted. I need to preven the javascript php file from being called directly from a browser... it can only be called as the include, and blocked from all other viewing.
What would be a good way to do this? Is there a way to block a page, but still allow it to be opened as an include, just not directly?