I have this file that I want to run first before each PHP file. How can i achieve this? Now I use only the classic php method.
run_me_first.php
and I want to include it in my entire PHP file. Besides having to manually do it manually, is there a way not to do it manually?
Try using the .htaccess file:
php_value auto_prepend_file "/path/to/file/run_me_first.php"
If this is free FTP, they may have some restrictions on the settings that you can change.
require include php . , , , .
, . , header.php. (. Php,.js), php . header.php php .
header.php . , . , .
Source: https://habr.com/ru/post/1527061/More articles:iPython does not read ~ / .inputrc - pythonКак применить жирный шрифт к первым элементам LI во вложенной структуре - cssA child process cannot read after exiting the parent process - cПроект wsgi не найден при запуске автоматически, но не вручную - djangoAvoiding merging changes in the manufacturing industry - gitкак я могу ссылаться на $_SERVER ['DOCUMENT_ROOT'] в файле .htaccess? - phpHow to use Hibernate Mapping when working with a huge data table - javaUnset Session Variables for Meteor.js Hot Code Reload - javascriptinclude directory path in .htaccess - phpReading python peak data stream in Android - pythonAll Articles