Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2001
    Posts
    552

    Adding to the PHP include path?

    I want to add (i.e. append) extra directories to the PHP include path as defined in the PHP.INI file, rather than replace it.

    How do I do that (both in .htacess and in PHP code)?

  2. #2
    Join Date
    May 2002
    Location
    Modesto, CA
    Posts
    3,414
    http://www.php.net/manual/en/function.include.php
    'php_value include_dir ".:/path1:/path/two"' in your .htaccess file
    dotGig
    <:<: [Fruit eating linux administrator]

  3. #3
    Join Date
    Jan 2001
    Posts
    552
    Originally posted by Samuel
    http://www.php.net/manual/en/function.include.php
    'php_value include_dir ".:/path1:/path/two"' in your .htaccess file
    Yes, I've tried this but it seems to supersede, rather than append to, the existing path defined in the php.ini file

  4. #4
    Join Date
    May 2002
    Location
    Modesto, CA
    Posts
    3,414
    Is this a PHP installation within a Windows Operating System? Or a shared linux webserver?
    dotGig
    <:<: [Fruit eating linux administrator]

  5. #5
    Join Date
    Jan 2001
    Posts
    552
    Originally posted by Samuel
    Is this a PHP installation within a Windows Operating System? Or a shared linux webserver?
    Shared Linux.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •