I have a site on apache web server. I have a file structure like this.
test.php
accessA.php
otherfiles.php
I want to add restrict access to test.php file for all user and for all file .for example if a user enter the http://site/test.php as url or a file or a user want to access the site/test.php directory the error message show and the user can not access the testA.php.
but I want allow only accessA.php file for access the test.php file with include statement like this.
accessA.php
<?php
include_once 'test.php' ;
?>
In other words I want allow access the test.php file only for accessA.php.
how I do that??
can I use open_basedir ??
text.phptest a user account against a set of known permissions. If the user does not have the proper permissions, send a 303.