Title: include php script into header.php
Last modified: August 19, 2016

---

# include php script into header.php

 *  [rodesignweb](https://wordpress.org/support/users/rodesignweb/)
 * (@rodesignweb)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/include-php-script-into-headerphp/)
 * Hello,
 * I’m experiencing some issues while including a php script/html file into the 
   header.php file.
 * <?php include (TEMPLATEPATH . “/test.html”);?>
    <?php include (TEMPLATEPATH .“/
   testphp.php”);?>
 * None of this versions are working. I also tried including using include (‘filename.
   extension’) or include “filename.extension” without having the desired effect.
 * I’m 100% sure that both scripts are working as expected and this can be tested
   and confirmed using:
 * [http://holdemfreerolls.net/wp-content/themes/sw-poker3-black/testphp.php](http://holdemfreerolls.net/wp-content/themes/sw-poker3-black/testphp.php)
   
   [http://holdemfreerolls.net/wp-content/themes/sw-poker3-black/test.html](http://holdemfreerolls.net/wp-content/themes/sw-poker3-black/test.html)
 * However on the mainpage the files are loaded, however the JS code located inside
   the files are not loaded. Any clues on how I can find the cause of this?

The topic ‘include php script into header.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [rodesignweb](https://wordpress.org/support/users/rodesignweb/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/include-php-script-into-headerphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
