<?php class errors { var $inc_path; function errors() { $this->inc_path= "/path/dir/"; } function sql_error() { include $this->inc_path."sql_error.php"; } } ?>