Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    17

    Default php include path

    I have set up a new user, example

    www.domain.com

    can they put all of their php files in the cgi-bin folder, so when they do a

    include 'whatever.php'; from within a php file

    it will it automatically search the cgi-bin folder and run?

    Thanks ahead of time

  2. #2
    Member
    Join Date
    Mar 2004
    Location
    Sydney
    Posts
    211

    Default

    Quote Originally Posted by KarterJK
    I have set up a new user, example

    www.domain.com

    can they put all of their php files in the cgi-bin folder, so when they do a

    include 'whatever.php'; from within a php file

    it will it automatically search the cgi-bin folder and run?

    Thanks ahead of time
    Not 100% sure, but they may be able to add something to this effect in their .htaccess in their DocumentRoot

    <IfModule mod_php4.c>
    php_value include_path = ".:/path/to/cgi-bin"
    </IfModule>

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    17

    Default

    lol
    stupid me all i had to do was test it in the cgi-bin folder (which didnt work)

    If I add your suggestion to the htaccess file
    will that change the php include path for the whole system
    or does it just add it as a path

    I am reluctant to try it for fear of breaking something

    thanks for the reply

  4. #4
    Member
    Join Date
    Mar 2004
    Location
    Sydney
    Posts
    211

    Default

    If you add it to just the users homedirectory/public_html it will only take effect for that domain.
    Try it and see if it works... if it fails remove it.

Similar Threads & Tags
Similar threads

  1. Adding Perl modules to the include path
    By peterr in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 07-05-2010, 01:17 PM
  2. Way to set include path
    By nbtc971 in forum Feature Requests for cPanel/WHM
    Replies: 3
    Last Post: 05-28-2010, 09:47 AM
  3. how to locally set include path for php?
    By asiams in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-04-2010, 10:54 PM
  4. Include path for cPanel
    By danielaugustus in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-18-2003, 08:13 PM
  5. Need advise for include path
    By OneSizeFitsAll in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-14-2003, 11:09 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube