ohh. sorry. what i intend to write is __autoload function... http://in.php.net/autoload moreover __autoload function is highly useful(especially when i hav one class per file) and i use it nearly every time i use a class. i dont think the scope of class definition 'included' within a function is limited to that function itself... PS: just tested - even if i hav the entire class definition inside the function, scope of class definition is not limited(the only condition being i should call the function before creating the object) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php