In article <f05100303b8d23ce1c0d5@[217.37.50.73]>, [EMAIL PROTECTED] (Andrew Warner) wrote:
> Is it okay practice to condtionally include php files that contain > only classes or functions (as opposed to just straight code)? The > result is a class or function inserted right in the middle of an if{} > block: > > > } elseif ($var=='a') > { > include('temp.php'); > > $obj = new foo; > echo $obj->hello(); > > } It's fine, but since redeclaring functions is an error, better to use include_once() or require_once(). -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php