Hello all,
I imagine this is an elementary question but I've searched and couldn't find what I'm looking for.
I've made a class that looks up whois information, and there's a class that handles top level domain extensions generally, from that class I'm making a series of subclasses that will be called depending on what sort of extension it is.
If it's a certain whois server then it calls handler 1, if another then handler 2 is called, and so forth.
What I need to know is how to call different subclasses of the extension handler depending on a variable ($handler) (which I will extract from the database) from within the whois class constructor.
I hope that makes sense :-) I will appreciate any and all help, as per usual you guys are great.
cheers, Rebecca