Include file path problem

Discussion in 'PHP' started by greatlogix, Mar 31, 2011.

  1. #1
    set_include_path(get_include_path() . PATH_SEPARATOR . '../../.');  
    PHP:
    get_include_path() is showing me path .:/usr/lib/php:/usr/local/lib/php

    Directory structure is like this
    - mws
    |
    --- samples
    --- Model
    --- Mock
    Where "samples" folder have all code to test and execute files. What should i set in above line so that all files get auto include.

    Also, please can someone explain whats actually happening in this line
    set_include_path(get_include_path() . PATH_SEPARATOR . '../../.');
     
    greatlogix, Mar 31, 2011 IP