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.

Skin using PHP

Discussion in 'User Experience' started by Marquis, Mar 28, 2003.

  1. Marquis

    Marquis Member

    Joined:
    Feb 5, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Can .php files be used instead of .html files?

    example: index.html be replaced by index.php
    in the skin's main directory
     
  2. rbmatt

    rbmatt Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Yes, just be ready for a couple of headaches. As of now, you cannot use the header() function because of an extra newline it inserts. I have also heard of a few problems with form variables. Haven't seen this myself....
     
  3. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    Failed opening required php

    I need to connect to a data base with php from cpanel but when I try to require other php files the index.php shows this error:

    Fatal error: Failed opening required 'home.php' (include_path='/usr/local/cpanel/3rdparty/lib/php/')

    What can I do?
    Thanks!
     
  4. rbmatt

    rbmatt Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    When you include, it uses the 3rd party directory, not the current directory. It should work if you specify the full path.
     
  5. equens

    equens Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    270
    Likes Received:
    0
    Trophy Points:
    16
    Thanks!

    Ok, thanks!!
     
  6. mmkassem

    mmkassem Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    390
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Egypt
    Is it possible to use compiled php files in the themes?
     
Loading...

Share This Page