-
-
CommentAuthoruberlemurguy
- CommentTimeJul 12th 2008
I want php and AJAX javascript to be able to access the files in the "pages/" folder but not let people just type in "pages/login.php". Any way to do this? -
-
-
CommentAuthoraaroncampbell
- CommentTimeJul 12th 2008
If you want AJAX to access it, you'll have to put logic at the top of the file that checks headers to see if it's being called by AJAX and exits with an error if the condition fails. If you just want PHP to access it, put them outside the web root. Nothing outside the web root is directly accessible, but PHP can still use them. -
-
-
CommentAuthoruberlemurguy
- CommentTimeJul 12th 2008
What logic checks for ajax headers? -
1 to 3 of 3
