WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Php inside a php (3 posts)

  1. migbrasil
    Member
    Posted 5 years ago #

    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

  2. stvwlf
    Member
    Posted 5 years ago #

    try

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

    double quotes around $filename are required in the include

  3. migbrasil
    Member
    Posted 5 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags