I am a newbie to PHP, I would like to create a prevent direct access to a php include file with .htaccess page
DemoSite/ <-folder
index.php
global_variable.php
.htaccess
I want to prevent direct access global_variable.php
file
like
if ( $_SERVER['REQUEST_METHOD']=='GET' && realpath(__FILE__) == realpath( ...
)
Anyidea how to use .htaccess
to achieve it???
Thank you very much