Which is the best (most reliable and fastest) way to ping a web site or get the html content of the given URL in a string variable. I tried a script using fsockopen() but it doesnt seem to work with URL's like : www.domain.com/subfolder or www.domain.com/subfolder/somefile.htm
Any help is appreciated!