Support » Fixing WordPress » Php inside a php

  • Resolved migbrasil

    (@migbrasil)


    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)
  • try

    $filename = '/' . $cortam . '.php';
    
    <?php include (TEMPLATEPATH . "$filename"); ?>

    double quotes around $filename are required in the include

    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.