Wordpress Exec-PHP Plugin Question

Discussion in 'WordPress' started by byteventures, Jan 21, 2009.

  1. #1
    Hi,

    I am having some trouble with using the Exec-PHP plugin. I am trying to request the 'id' within a post, but it does not seem to be pulling in the session ID. Here is the code that creates the session ID.

    <?php
        /* Add This code each target page*/
        /*********************************/
        session_start();
        if($_REQUEST['id']){
            $_SESSION['id'] = $_REQUEST['id'];
            $host  = $_SERVER['HTTP_HOST'];
            $uri   = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
            $hidden = "http://" . $host . $uri;
            //header("Location: " . $hidden);
            header("Location: ?");
        }
        $id = $_SESSION['id'];
        /*********************************/
    ?>
    PHP:
    In the Wordpress post I am requesting the ID with the following code.
    <?=$id;?>

    Does Exec-PHP recognize <?=$id;?> or do I need to format it differently? Thanks in advance for your help.
     
    byteventures, Jan 21, 2009 IP