Answer the question
In order to leave comments, you need to log in
How can I make the script run on every request?
I need a PHP script to be executed on each request, how can I do this?
Answer the question
In order to leave comments, you need to log in
Include it via require / require_once or include / include_once (read the feature differences in the require docs).
Or execute via shell_exec .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question