Search code examples
phpwordpresshhvm

How can I force running a php extension after each php call without explicitly writing the code?


Let's say I host 1000 wordpress websites, instead of installing a plugin that

      echo "site designed by john doe"; 
      // also echo google analytics <script>

Is it possible to have a php extension that does that without needing me to install a plugin and activating it all the time? I don't mind if the script echos after closing tag

Is this possible?


Solution

  • If you have access to php.ini, you can use auto_prepend_file or auto_append_file to cause code to be executed before/after the main file.