Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    56
    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:
    166
    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:
    56
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice