summit heres d code
public php v1 · immutableclass beg------------------class beg { function setinst($instance){ $this->instance = $instance; } function setusr($user){ $this->user = $user; } } file one------------------$beg = new beg; $beg->setinst("localhost"); file two------------------if(class_exists("beg")){ $beg2 = new beg; $beg2->setinst("localhost"); }else{ require_once("scrs/beg.class.php"); }// jst used this if to see if class exists