Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Nov 2007
    Posts
    36

    Default PHP or include

    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. #2
    Member
    Join Date
    Apr 2007
    Posts
    144

    Default

    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. #3
    Member
    Join Date
    Nov 2007
    Posts
    36

    Default

    Yeh thats great, however how do I make files with the HTML extension parse with PHP. For use in the cPanel interface?

    Thanks
    MSH

Similar Threads & Tags
Similar threads

  1. PHP Include issues
    By pzo1970 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-14-2008, 08:17 AM
  2. php include problem
    By cosmin in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-10-2007, 10:18 PM
  3. CGI/PHP include?
    By andy7t in forum Themes and Branding
    Replies: 1
    Last Post: 03-15-2004, 01:52 PM
  4. How can I recompile php to include GD
    By mvd in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-15-2003, 12:08 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube