Re: require include
| From: | Jason Wong | Date: | Wed, 09 Apr 2003 06:47:25 +0000 |
| Subject: | Re: require include | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143006@lists.php.net to get a copy of this message | ||
On Wednesday 09 April 2003 09:20, Richard Baskett wrote:
> Ok it used to be that when you included a file.. let's say
>
> web structure
> /www/public_html/
>
> a file called index.php in web root
> /www/public_html/index.php
>
> would include template/temp.php
> /www/public_html/template/temp.php
>
> and temp.php would include a web root file called next.php
> /www/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..
Are you using CGI? With the CLI version of PHP the way paths are handled was
changed. You may want to check whether the CGI version was affected as well.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
It is impossible to enjoy idling thoroughly unless one has plenty of
work to do.
-- Jerome Klapka Jerome
*/