Irfan this is what you looking, Enjoy. Mehboob Ali <?php $lines = file("http://main.pslgroup.com/psl.nsf/default?OpenForm"); $findme ="<!-- body copy -->"; $findme2 = '<img src="/psl/images/industry.gif" width="220" height="16" border="0" alt="INDUSTRY NEWS">'; $findme3 = '<img src="/psl/images/medicalnews1.gif" width="220" height="16" border="0" alt="MEDICAL NEWS">'; $start = 0; $t = ""; $position = 0; foreach ($lines as $line_num => $line) { $t= $t.$line; } $position = strpos($t, $findme); $position2 = strpos($t, $findme2); $position3 = strpos($t, $findme3); $d= $position2 - $position; $d2= ($position3 - $position2) - strlen($findme2); $d3 = $position3 + strlen($findme3); $pnew = $position2 + (strlen($findme2) ); $pnew2 = $position3 + (strlen($findme3)); $htmltext1 = '<font size="0" face="Verdana, Arial, Helvetica, sans-serif">'.substr($t, $position, $d ); $htmltext2 = $htmltext1.substr($t, $pnew, $d2); $htmlfile = $htmltext2.substr($t, $pnew2, $d3 ).'</font>'; //Remove copyrights message $privacy = '<font face="Arial, Helvetica, Sans Serif" size="-2"><a href="/psl.nsf/html/privacypolicy.html">Privacy Policy</a> | All contents Copyright© 2004 P\S\L Group. All rights reserved.</font>'; $htmlfile = str_replace($privacy, " ", $htmlfile); //Correct Link to More News $industry = '<a href= "/news/industrynews.nsf/AllIndustryNews?Openform">More Industry News</a>'; $industrywith = '<a href="http://main.pslgroup.com/news/industrynews.nsf/AllIndustryNews?Openform" target="_blank">More Industry News</a>'; $htmlfile = str_replace($industry,$industrywith, $htmlfile); $medical = '<a href= "/news/content.nsf/AllMedicalNews?Openform">More Medical News</a>'; $medicalwith = '<a href= "http://main.pslgroup.com/news/content.nsf/AllMedicalNews?Openform" target="_blank">More Medical News</a>'; $htmlfile = str_replace($medical,$medicalwith, $htmlfile); $b = '<B>'; $b2 = '</B>'; $htmlfile = str_replace($b,"", $htmlfile); $htmlfile = str_replace($b2,"", $htmlfile); $f = '<font size="-1">'; $htmlfile = str_replace($f,'<font size="0">', $htmlfile); $filename = "psltemp.txt"; $new_file = fopen ($filename, "w") or die("Could not open file"); fwrite($new_file, $htmlfile); fclose($new_file); $filename2= "pslNews.html"; $fh = fopen ($filename, "r") or die("Could not open file"); $final = fopen ($filename2, "w") or die("Could not open file"); while (!feof($fh)) { $data = fgets($fh, 1000); if (trim($data) != "") { $htmldata = $data; echo $htmldata; fwrite($final, $htmldata); } } fclose ($fh); fclose ($final); ?> --- IRFAN AFZAL <afzalirfan10@xxxxxxxxx> wrote: > Hi > I want to make a datafeed website. Many merchant > offers their product datafeed which we can use. Is > there anyone who can help me? > I will be particularly using datafeed from this > affliate who offers datafeed of many companies. > http://www.datafeed.co.uk > If anyone has done this before, suggest where to > start and what to do? > > REGARDS > IRFAN > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Search presents - Jib Jab's 'Second Term' > > [Non-text portions of this message have been > removed] > > __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com PHP Data object relational mapping generator - http://www.meta-language.net/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/