Title: The problem about &quot; [function.include-once]: failed to open stream&quot;
Last modified: August 20, 2016

---

# The problem about " [function.include-once]: failed to open stream"

 *  [deshanzeng](https://wordpress.org/support/users/deshanzeng/)
 * (@deshanzeng)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/the-problem-about-functioninclude-once-failed-to-open-stream/)
 * help!!!English is poor,sorry!
 * I run wordpress locally with xmapp, and i code something in the function.php.
 * I just want to do this :
    define(‘FW’,TEMPLATEPATH . ‘/framework/’);
 * and i can :
    include_once(FW.’/.framework_init.php’);
 * But it problem :
    Warning: include_once(C:\xampp\htdocs\wordpress/wp-content/
   themes…
 * So it means “FW” = “C:\xampp\htdocs\wordpress” ?
 * and another method to do this:
    require_once(TEMPLATEPATH . ‘/framework/framework_init.
   php’);
 * it success~~ -_-||| Why? I don’t understand. I can’t find out the answer. Pleaes
   help me, thanks!

The topic ‘The problem about " [function.include-once]: failed to open stream"’ 
is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [templatepath](https://wordpress.org/support/topic-tag/templatepath/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [deshanzeng](https://wordpress.org/support/users/deshanzeng/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/the-problem-about-functioninclude-once-failed-to-open-stream/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
