Title: [Plugin: Header and Footer] php code insert
Last modified: August 20, 2016

---

# [Plugin: Header and Footer] php code insert

 *  Resolved [scaltro](https://wordpress.org/support/users/scaltro/)
 * (@scaltro)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-header-and-footer-php-code-insert/)
 * PHP Parse error: syntax error, unexpected ‘<‘ in /var/www/wordpress/wp-content/
   plugins/header-footer/plugin.php(165) : eval()’d code on line 17,
 * I always had this error in my Apache while I’m trying to add php code on the 
   header of each pages…
 * this is the code
    <?php require_once(‘/var/www/owa/owa_php.php’); $owa = new 
   owa_php(); $owa->setSiteId(‘xxxxxxx’); $owa->trackPageView(); $owa = & new owa_php;
   $owa->placeHelperPageTags(); ?> But if I remove the <?php?> tag the text is just
   printed on the browser… How can I execute PHP code?
 * [http://wordpress.org/extend/plugins/header-footer/](http://wordpress.org/extend/plugins/header-footer/)

The topic ‘[Plugin: Header and Footer] php code insert’ is closed to new replies.

 * ![](https://ps.w.org/header-footer/assets/icon-256x256.png?rev=3452717)
 * [Head, Footer and Post Injections](https://wordpress.org/plugins/header-footer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/header-footer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/header-footer/)
 * [Active Topics](https://wordpress.org/support/plugin/header-footer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/header-footer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/header-footer/reviews/)

## Tags

 * [INCLUSION](https://wordpress.org/support/topic-tag/inclusion/)
 * [php code](https://wordpress.org/support/topic-tag/php-code/)

 * 0 replies
 * 1 participant
 * Last reply from: [scaltro](https://wordpress.org/support/users/scaltro/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-header-and-footer-php-code-insert/)
 * Status: resolved