i have tried both methods and they both work well
thanx guys that helps a lot.
also another question
if you were going to make a function to test your internet speed how would you go about it.
im thinking just download a file and calculate the download time with the size of the file.
if you agree, where should i be looking