Re: Includes with XAMPP
| From: | Ashley Sheridan | Date: | Fri, 17 Jul 2015 07:19:05 +0000 |
| Subject: | Re: Includes with XAMPP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324998@lists.php.net to get a copy of this message | ||
On Thu, 2015-07-16 at 21:29 -0400, Michael Bredthauer wrote:
> I have been using Apple computers running MAMP to do my PHP web design and
> never had a problem with include files, I have had to start using PC and
> running XAMPP
>
> When I am running an require_once("inc/config.php"); on the main index.php
> file everything works fine, but when I go up the tree into the next folder
> and use require_once("../inc/config.php"); it gives me an error. can
> someone help me with this? This applies to when I am adding
> include(ROOT_PATH . "inc/_dochead.php"); on any page but the main page.
It would be helpful if you posted the error you were getting ;)
Thanks,
Ash
http://www.ashleysheridan.co.uk