Title: Problem PHP &quot;require_once&quot;
Last modified: August 31, 2016

---

# Problem PHP "require_once"

 *  [benjee1984](https://wordpress.org/support/users/benjee1984/)
 * (@benjee1984)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/problem-php-require_once/)
 * Hello,
 * I created a “language.php” file that contains lots of variables that I want to
   call on all pages of the site.
 * In the file “header.php” I add “require_once” like this:
 * `<?php require_once('inc/language.php'); ?>`
 * All variables called in the “header.php” file works but not named in the file“
   footer.php” or any other file elsewhere .
 * The “print_r” shows me an empty variable.
 * Is there a solution?
 * Best regards.

The topic ‘Problem PHP "require_once"’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [benjee1984](https://wordpress.org/support/users/benjee1984/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/problem-php-require_once/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
