1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

edti php include_path on Godaddy site

Discussion in 'Apache' started by fensterbaby, Feb 27, 2009.

  1. #1
    I have php4 installed on a Godaddy site. I'm trying to edit the php include_path

    I have the following line in my php.ini file but it has no effect.

    include_path = ".:/var/chroot/home/content/f/e/n/fensterbaby1/html/phpincludes/"


    I tried editing .htaccess but could only produce configuration errors and if I'm not mistaken Godaddy has PHP set up as cgi.

    Any help appreciated
    Thanks
     
    fensterbaby, Feb 27, 2009 IP
  2. GDHosting

    GDHosting Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It sounds like you are using hosting config 1.0 because the custom php.ini is only supported with hosting config 2.0.

    In order to set the include path, you can upgrade to config 2.0 using this article: http://help.godaddy.com/article/1078; Or you can add a line to their PHP files that sets the include path:

    set_include_path( '/var/chroot/home/content/f/e/n/fensterbaby1/html/phpincludes/' . PATH_SEPARATOR . ini_get( 'include_path' ) );
     
    GDHosting, Mar 4, 2009 IP