Better explanation about the issues you are having would probably get you better answers..
Also, instead of using echo in a snippet, collect the output to a string and return it from the snippet at the end of it’s execution.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
That error is not probably coming from that snippet, the line number does not match. If you are trying to do a domain checker snippet, you can probably get better results with this:
http://modxcms.com/forums/index.php/topic,7633.0.html
There is also other domain name checkers around this forum somewhere.. try to search around (using google).
"He can have a lollipop any time he wants to. That's what it means to be a programmer."