scbookz Posted August 2, 2009 Share Posted August 2, 2009 last post was not a good question but this one is why doe s my file not start at halfway down my html page and read,, it is reading from the beginning ----------------------------------------------- <?php $whatever = "http://cc.cc.cc.cc:81/osc/osc/osc/catalog/product_info.php?products_id" $what = fgets($whatever,9999); $oscfile = file_get_contents($what); $osc = (get_oscdoc_title($oscfile)); $test = $osc; //function function get_oscdoc_title($oscfile){ $osctag = preg_match_all('/<img src="images\/(.*).jpg/', $oscfile, $oscmatches, PREG_PATTERN_ORDER); return($oscmatches[1][0]);} echo $test; Link to comment https://forums.phpfreaks.com/topic/168524-why-is-this-file-not-reading-halfway-down-my-page-i-willdelete-other-post/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.