zeeman48 Posted November 5, 2006 Share Posted November 5, 2006 I have a script that does some specialized functionality on all my pages and I'm wondering if there's any way to automatically include it on all my pages.Is there a script I could make that would automatically go into all my PHP files and include it?EDIT: Question answered. Thanks! Link to comment https://forums.phpfreaks.com/topic/26255-automatically-including-one-script-into-all-your-php-files/ Share on other sites More sharing options...
heckenschutze Posted November 5, 2006 Share Posted November 5, 2006 Just include it into every page, eg...[code]<?phpinclude_once("myspecial_functions.php");?>[/code] Link to comment https://forums.phpfreaks.com/topic/26255-automatically-including-one-script-into-all-your-php-files/#findComment-120093 Share on other sites More sharing options...
trq Posted November 5, 2006 Share Posted November 5, 2006 If you have access to the php.ini you can include files automatically before or after execution using the auto_prepend_file or auto_append_file directives. Link to comment https://forums.phpfreaks.com/topic/26255-automatically-including-one-script-into-all-your-php-files/#findComment-120095 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.