puzzleing problem, please help

From: Date: Sun, 04 May 2003 16:12:30 +0000
Subject: puzzleing problem, please help
Groups: php.general 
Request: Send a blank email to php-general+get-146367@lists.php.net to get a copy of this message
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

« previous php.general (#146367) next »