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 or include

Discussion in 'User Experience' started by msh100, Jun 29, 2008.

  1. msh100

    msh100 Active Member

    Joined:
    Nov 21, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Hello,
    Is it possible to use PHP in a cpanel template, or if not, is it possible to include the HTML from a remote website, and if that also is not possible, is it possible to include a local file, in for example /home/user/public_html/blah.html

    Thanks
    MSH
     
  2. Tymsah

    Tymsah Well-Known Member

    Joined:
    Apr 6, 2007
    Messages:
    151
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    php include function is good.

    <?
    include 'http://www.example.com/file.php?foo=1&bar=2';
    include 'file.txt';
    include 'file.php';

    include "/var/www/htdocs/file1";
    include "http://yoursite/file2";

    ?>
     
  3. msh100

    msh100 Active Member

    Joined:
    Nov 21, 2007
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Yeh thats great, however how do I make files with the HTML extension parse with PHP. For use in the cPanel interface?

    Thanks
    MSH
     
Loading...

Share This Page