Re: require include
| From: | Richard Baskett | Date: | Wed, 09 Apr 2003 14:55:21 +0000 |
| Subject: | Re: require include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143095@lists.php.net to get a copy of this message | ||
Ok I figured the problem out.. when I put .: as part of the include path it
fixes all those problems :) Thanks!
Rick
"The old law about "an eye for an eye" leaves everybody blind." - Dr. Martin
Luther King, Jr.
> From: Richard Baskett <php@baskettcase.com>
> Date: Wed, 09 Apr 2003 07:26:46 -0700
> To: PHP General <php-general@lists.php.net>
> Subject: [PHP] require include
>
> Ok it used to be that when you included a file.. let's say
>
> web structure
> /Users/username/Sites/domain.com/public_html/
>
> a file called index.php in web root
> /Users/username/Sites/domain.com/public_html/index.php
>
> would include template/temp.php
> /Users/username/Sites/domain.com/public_html/template/temp.php
>
> and temp.php would include a web root file called next.php
> /Users/username/Sites/domain.com/public_html/next.php
>
> but for some reason temp.php is looking for the file within it's own
> directory instead of the directory that the original file, index.php, doing
> all the including is in.. Is there something I need to set in php.ini to
> get it to do this? Im not even sure what to google for this problem..
>
> normally if it was my own script I would program for this, but since this is
> in a packaged deal.. I would hate to go through the entire thing and edit
> all the scripts..
>
> my ini_get("include_path") = /Users/username/Sites/domain.com/phpinc
>
> phpinc is in the same folder as public_html
>
> Thanks!
>
> Rick
>
> "Finish each day and be done with it. You have done what you could; some
> blunders and absurdities have crept in; forget them as soon as you can.
> Tomorrow is a new day; you shall begin it serenely and with too high a
> spirit to be encumbered with your old nonsense." - Ralph Waldo Emerson
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>