I'm gonna help you out casue you seem to be new at this
www.php.net/strstr
Follow that link and read the description in the manual.
Copied and pasted from that link:
string strstr ( string haystack, string needle)
you search for a needle in a haystack, that means the needle in your case is 'www' and the haystack (or the place you are searching) is $Piece1
so the format for this is strstr($Piece1, 'www')
Now put that in an if statement
if (($Work1 == 'File1') && (strstr($Piece1, 'www'))) {
// do something
}
Cgraz