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

Discussion in 'General Discussion' started by ScareCrowe, Jun 12, 2008.

  1. ScareCrowe

    ScareCrowe Registered

    Joined:
    Apr 10, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    This might be a silly question, but here goes:

    I have a script that genererates files for inclusion. I would like to include these files in any domain that runs on the server.

    My question is, do I need to address anything as far as permissions and/or pathing to ensure the files will be included correctly?

    I am pretty confident that I can simply use the full path to the files and be okay, but I am not familiar with CPanel environment and want to make sure there aren't any nuances I am not aware of.

    Any input would be greatly appreciated!
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Are you running SuPHP and SuExec or not?
     
  3. ScareCrowe

    ScareCrowe Registered

    Joined:
    Apr 10, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Well, it could be either.

    The reason I am asking about this is that I have an advertising script that will be installed on a handful of CPanel servers. The idea is for the script to write *.inc files that can be accessed from any site the owner runs on his/her server.

    I want to make sure that everything will work correctly for everyone, so need to know what typical settings/software and whatnot I will need to be aware of to either address in the script itself and/or pass on to the server owner.

    You say SuPHP and SuExec, what would I need to do to make sure it will work running under either one?
     
Loading...

Share This Page