Jump to content

why is this file not reading halfway down my page? i willdelete other post


scbookz

Recommended Posts

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;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.