The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

php includes and cpannel commands

Discussion in 'User Experience' started by NickBtz, Jul 9, 2004.

  1. NickBtz

    NickBtz Registered

    Joined:
    Jul 7, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    php includes and cpanel commands

    Hi,

    I'm having a problem with CPanel and php.

    I have a file; index.php

    PHP:
    <? 
        If(
    $page == listemail
        {
        include 
    '/usr/local/cpanel/base/frontend/test/listemail.php';
        }   
        
    ?>

    The file listemail.php contains (for instance);

    PHP:
    <cpanel LastLogin="lastlogin()">
    TESTING 123

    When I load up "index.php?page=listemail"
    I only see "TESTING 123" and not the cpanel command result.

    I can see the include is working and ive already used includes around the skin, however, any cpanel comands that are included fail to produce any output.

    Any idea what im doing wrong?

    Nick
     
    #1 NickBtz, Jul 9, 2004
    Last edited: Jul 9, 2004
Loading...
Similar Threads - php includes cpannel
  1. Krydos
    Replies:
    4
    Views:
    175

Share This Page