Thanks all for the ideas. they have worked!
And vincent,
I just needed this functionality in one of my functions which provides Java like class library imports.
e.g. the interface i provide is:
phpobject_import('http.THttpURL');
where i have more classes in http package, so a user if wants, can include them all like:
phpobject_import('http.*');
By the way, i am working on php classes library. will be up soon on phpobject.com
regards,
Daarius...