vincent wrote:
Then either require_once() is buggy, or you have missed one require() (yes I know you think you replaced all, but it's always possible you missed one) or you are include()ing the script elsewhere.
At any rate, your script's structure should be so that you never ever include() or require() something twice in the first place.
I know, it'hard to believe, but I have 22 files, in one directory and I:
- looked at them all one at a time
- grep-ped them all for "include", or "require"
- looked at them all another time
- looked at them all another time more carefully
- made them examined by team pal
and there are nothing different from require_once.
Could the problem stand in this piece of code?
<?php
require_once "_db.php";
class TObjectList
{
var $objects;
var $objName;
var $pkFields;
//Constructor
function TObjectList ($objName, $pkFlds, $query, $fName)
{
require_once ($fName);
$this->objName = $objName;
$this->pkFields = $pkFlds;
....
?>
Any help appreciated, thanx again
Maxxx