You can visit a homepage with cURL like this:
To visit a list of sites, put them in an array, like this:
And for automating the visiting do this:
cURL is easy...... read the codes give in php.net for cURL and i've written some samle programs at phpian.com...do refer them too...
I'd personally use curl_multi_add_handle now that frih.net supports PHP5.