Web lists-archives.com

Re: [PHP] Includes with XAMPP




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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php