Hi, I need to include a PHP file in all other PHP files of my site.
This is a sample of my site map:
|index.php
|foolder1
|| file1.php
|| check.php
|foolder2
|| file2.php
|foolder3
|| file3.php
I want the whole PHP file to be included check.php, I have to say that I can’t edit php.ini, and I know what it is php_value auto_prepend_file "check.php", but I don’t know how this function is launched, then I ask for help to use php_value auto_prepend_fileor another way to include my file in all the others PHP files? Thank you in advance.
EDIT:
I know that in StakOverflow have some questions, like this one, but I can not edit your php.ini (some restrictions on the server ...), and I just tried to put php_value auto_prepend_file "foolder1/check.php"in .htaccess, and it is run on index.php, but not to file1.php, file2.php.. .