how to set the include_path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ramprasad A Padmanabhan

    how to set the include_path

    I know it is a dummies question, But I am not able to find it on the php
    manual. Can anyone tell me How to set the include_path in php

    thanks
    Ram
  • Boefje

    #2
    Re: how to set the include_path

    There are 2 ways to do this:

    1 more or less permanent: In the PHP.ini file in your Windows
    directory. Search for "include_pa th"

    (use the correct slashes)

    2 temporarely: Put the following code in your PHP script file.

    $path_relative_ to_domain_root = "my_project ";

    $abs_start_dir =
    $_SERVER['DOCUMENT_ROOT'].$path_relative _to_domain_root ;

    ini_set('includ e_path', $abs_start_dir) ;





    On Fri, 12 Mar 2004 18:57:13 +0530, Ramprasad A Padmanabhan
    <ramprasad.padm anabhan.nospam@ oracle.com> wrote:
    [color=blue]
    >I know it is a dummies question, But I am not able to find it on the php
    >manual. Can anyone tell me How to set the include_path in php
    >
    >thanks
    >Ram[/color]

    Comment

    Working...