Title: using php&#039;s require
Last modified: August 20, 2016

---

# using php's require

 *  [iperez_genius](https://wordpress.org/support/users/iperez_genius/)
 * (@iperez_genius)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/using-phps-require/)
 * I feel a bit stupid asking this question however whenever I put this
 * require ‘./facebookapi/src/facebook.php’;
 * into my header of my theme the header crashes, crashing the entire site.
 * I have tried using an absolute path to and it also breaks the page.
 * What am i doing wrong?

Viewing 1 replies (of 1 total)

 *  [Tammie Lister](https://wordpress.org/support/users/karmatosed/)
 * (@karmatosed)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/using-phps-require/#post-2949046)
 * Are you following some tutorial or plugin details that is asking you to add this?
   Just trying to figure out what you are trying to achieve and get full picture
   if possible.
 * Also, can you confirm you are adding like this:
 * `<?php require('./facebookapi/src/facebook.php'); ?>`
 * [http://php.net/manual/en/function.require.php](http://php.net/manual/en/function.require.php)
 * Depending on location you could try `$_SERVER["DOCUMENT_ROOT"]` to get the location.

Viewing 1 replies (of 1 total)

The topic ‘using php's require’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [require()](https://wordpress.org/support/topic-tag/require/)
 * [theme development](https://wordpress.org/support/topic-tag/theme-development/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tammie Lister](https://wordpress.org/support/users/karmatosed/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/using-phps-require/#post-2949046)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
