Re: puzzleing problem, please help
| From: | Shawn McKenzie | Date: | Sun, 04 May 2003 19:48:50 +0000 |
| Subject: | Re: puzzleing problem, please help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146377@lists.php.net to get a copy of this message | ||
Assuming config.php is with the stan.php, how about:
require("/home/public_html/sales/inc/config.php");
and
require("/home/public_html/sales/inc2/config.php");
-Shawn
"Ryan A" <ryan@jumac.com> wrote in message
news:000701c31257$f6aca470$1301400a@l2zcaxu7emppqh...
> Hi guys,
> This is driving me nuts.
>
> my directory structure
>
> /sales
> /sales/inc
> /sales/inc2
>
> in ../sales i have confirmed.php with this:
> if($product_id == 3)
> { include ("/home/public_html/sales/inc/stan.php"); }
> else{ include ("/home/public_html/sales/inc2/stan.php"); }
>
> in both "inc" and "inc2" i have the same identical file
> "stan.php", but
for
> each "stan.php" I have a differient config.php file.
>
> confirmed.php is working perfectly and is calling
> "/home/public_html/sales/inc/stan.php" if product_id=3 but because
stan.php
> there has a "require('config.php');" it is giving me an error and dieing.
>
> What to do?
>
> Kindly reply if you think of anything, I have just about given up.
>
> Cheers,
> -Ryan
>