in my server? So I will have a code and it will be inserted to all pages in my server automatically. I'm not sure if there's such a thing but just in case someone here knows how. Ask if you want more details and stuff.
to add to that, create code.php as login said or whatever.php and put it as require or include in your other pages or sites by calling <?php include('linkto/code.php');?> Code (markup): in the pages and place where you want stuffs/contents from code.php to show
And to add to that. If you have many sites the code will be: <?php include('http://www.yoursitewiththecodefolder.com/code.php');?>
Hello, add auto_prepend_file or auto_append_file in your php.ini, with auto_prepend_file the file is parsed before the main php and with auto_append_file after the main php, be careful because if the main php is terminated with exit() auto_append_file will not work. for example auto_prepend_file = pathtothephpfile/code.php