[!--quoteo(post=359286:date=Mar 28 2006, 10:16 AM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ Mar 28 2006, 10:16 AM) [snapback]359286[/snapback][/div][div class=\'quotemain\'][!--quotec--] [code]<?php for($i = 0; $i < count($myarray); $i++) { if(substr($myarray[i], -2) == 'ab') // do something } [/code] And yes, fopen() opens both remote and local files. [/quote] when i use fopen() to open a URL i get only: Resource id #4 I asume it is opening the page but not putting the acctually contents into my varriable.