Does someone know how to make a script that is always included in a php file.
For Example, I have an index.php, I wanted to include script.php by doing include 'script.php';
Again, I have a login.php and I wanted to include script.php by doing include 'script.php';
I think this is very tiring to do and I think this is not a good idea because it is very repetitive. Is there a way where I can include script.php
without doing include in each of the file? Like I should do that in a single file then everything would be affected.
Any idea would be greatly appreciated and rewarded. Thanks! :)