how to use dump links

Status
Not open for further replies.
2 comments
It would depend on how you wanted to use it. And how many are they passing to you and how are you getting them? A file an xml or ????
But say for a file one input per line you one you could do something like this.
PHP:
<?php
$infile = fopen('indata.txt','r');
$ctr         = 0;
// to retrieve snd store file in an array
while (!feof($infile)) { $datain = fgets($infile,4096); $dataArray[$ctr] = explode('|',$datain); $ctr++; }
// to retrieve data from array  
foreach ($dataArray as $dataout) { echo "<br>url: ".$dataout[0]." ** model name: ".$dataout[1]." ** image url: ".$dataout[2]." ** date added: ".$dataout[3]; } 
?>
 
the links are in clear text.... u can say a txt file....

and there are more than 100 links....
how to repeat this process for every line???
 
Last edited:
Status
Not open for further replies.
Back
Top