Re: Re: puzzleing problem, please help
| From: | Ryan A | Date: | Sun, 04 May 2003 20:04:29 +0000 |
| Subject: | Re: Re: puzzleing problem, please help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146378@lists.php.net to get a copy of this message | ||
Hi Shawn,
Thanks what I did but I had to change all stan 6 files one by one....(I
showed only 2 but there are 6 inc directories)
I was hoping for a solution in which i wouldnt have to touch/modify the stan
files but just the confirmed.php files...
Thanks for replying anyway.
Cheers,
-Ryan
----- Original Message -----
From: "Shawn McKenzie" <nospam@mckenzies.net>
To: <php-general@lists.php.net>
Sent: Sunday, May 04, 2003 9:48 PM
Subject: [PHP] Re: puzzleing problem, please help
> 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
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>