Not an easy one i take it...
... if i was to use wget, or curl to download a file, instead of using an error code to establish wether it worked or not i would like to extract certain bits of the output on the the screen, but not all of it, based on certain variables...
IF the string contained COMPLETE, then display certain things, but if it contained JOEBLOGS do something else ... BLAH, BLAH BLAH.....
think preg_match is correct but... thats why you gurus are here.