i wrote the following php code
Code: Select all
$rss_url= "http://www.ibnlive.com/xml/top.xml";
//$rss_url[2]="http://www.ibnlive.com/xml/world.xml";
//$rss_url[3]="http://www.ibnlive.com/xml/business.xml";
//$rss_url[4]="http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/world/rss.xml";
//$rss_url[5]="http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/technology/rss.xml";
$i=0;
//for($i=0 ;$i<6 ;$i++)
//{
// echo $rss_url[$i];
$file = md5($rss_url);
//echo $file;
$inpath = "rss/$file.xml";
$outpath = "$file.html";
//echo $outpath;
copy($rss_url,$inpath);
//echo $path;
system('./a.out $inpath');
copy ("temphtm.html",$outpath);
echo "<a href='$outpath'> click$i</a><br>";
//}temphtm.html
when i run it i get the following error
Warning: copy(temphtm.html) [function.copy]: failed to open stream: No such file or directory..
though the cpp program is correct and working perfectly when i execute it .
also as you can see the comments , i was trying to use array , but it was not working....
please help,
thanks,
vineet[/i]