www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to change PATH?

  1. #1
    Join Date
    Sep 2005
    Posts
    1,630

    Question How to change PATH?

    to specify the PHP include path need help.
    PHP Code:
    php_value include_path ... 
    How to use this if you have some sample with all code.

  2. #2
    Join Date
    Sep 2005
    Posts
    73
    Hi.
    First read this article:
    http://forums.whirlpool.net.au/forum...fm/545471.html

    the last entry is:
    $dir1 = '/websites/bla/blah';
    $dir2 = '/classes/class1';
    set_include_path($dir1.';'.$dir2.';'.get_include_path());

    DO NOT try URL like HTML: '/folder/file.php' it will NOT work.
    only '../../folder/file.php'

    GoodLuck.

  3. #3
    Join Date
    Sep 2005
    Posts
    1,630

    Question

    Hi thank you. this one of the best post as many posts did not solve this.


    PHP Code:
    $dir1 '/en-GB/service/training/index_serv.php';
    $dir2 '/classes/class1';
    set_include_path($dir1.';'.$dir2.';'.get_include_path());
    set_include_path(
        
    '/application' PATH_SEPARATOR '/library' PATH_SEPARATOR get_include_path()
    ); 
    How to store PATH in variable?
    How to make code like on apache on the same server not application within folders as in variable $dir1?
    Last edited by toplisek; 02-07-2009 at 03:47 AM.

  4. #4
    Join Date
    Sep 2005
    Posts
    1,630
    have tried to include file with your code like:
    $dir1 = '/en-GB/service/training';
    set_include_path($dir1 . PATH_SEPARATOR . get_include_path());
    include('file.php');

    It does not include my file.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles