Title: difference between get_header() or include(TEMPLATEPATH . &#8216;/header.php&#8217;)?
Last modified: August 19, 2016

---

# difference between get_header() or include(TEMPLATEPATH . ‘/header.php’)?

 *  [tomasi514](https://wordpress.org/support/users/tomasi514/)
 * (@tomasi514)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/difference-between-get_header-or-includetemplatepath-headerphp/)
 * Is there any difference using
    get_header() or include(TEMPLATEPATH . ‘/header.
   php’)?
 * I want to use a redirection to the good header.php page depending on the browser
   language using:
 *     ```
       <?php
       if (!isset($langue_user) && !isset($_SESSION["ch_langue"])){
       $langue_user=substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2);
       	switch($langue_user){	
   
       	case "en":
       	$_SESSION["ch_langue"] = "en";
       	break;
   
       	default:
       	$_SESSION["ch_langue"] = "fr";
       	break;
       	}
       }
       ?>
       ```
   
 * Any advice to do that properly?

The topic ‘difference between get_header() or include(TEMPLATEPATH . ‘/header.php’)?’
is closed to new replies.

## Tags

 * [english](https://wordpress.org/support/topic-tag/english/)
 * [francais](https://wordpress.org/support/topic-tag/francais/)
 * [general-template.php](https://wordpress.org/support/topic-tag/general-template-php/)
 * [get_header](https://wordpress.org/support/topic-tag/get_header/)
 * [header.php](https://wordpress.org/support/topic-tag/header-php/)
 * [language](https://wordpress.org/support/topic-tag/language/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tomasi514](https://wordpress.org/support/users/tomasi514/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/difference-between-get_header-or-includetemplatepath-headerphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
