Title: Php inside a php
Last modified: August 19, 2016

---

# Php inside a php

 *  Resolved [migbrasil](https://wordpress.org/support/users/migbrasil/)
 * (@migbrasil)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/php-inside-a-php-1/)
 * How do i put this php code:
 * `<? echo($cortam); ?>`
 * inside of this one: (where it says HERE)
 * `<?php include (TEMPLATEPATH . '/HERE.php'); ?>`
 * sorry im not familiar w/ php

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/php-inside-a-php-1/#post-1098786)
 * try
 *     ```
       $filename = '/' . $cortam . '.php';
   
       <?php include (TEMPLATEPATH . "$filename"); ?>
       ```
   
 * double quotes around $filename are required in the include
 *  Thread Starter [migbrasil](https://wordpress.org/support/users/migbrasil/)
 * (@migbrasil)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/php-inside-a-php-1/#post-1098792)
 * T H A N K Y O U
 * this is my 10th post here!! and you are my only reply on all of them!!
    they 
   were all different types of questions ;p
 * It worked :]
 * Thanks again

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Php inside a php’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [migbrasil](https://wordpress.org/support/users/migbrasil/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/php-inside-a-php-1/#post-1098792)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
