Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $homepage = file_get_contents('https://news.yandex.ru/daily.rss');
- $files2 = preg_match('|<title>(.*)</title>|Uis', $homepage, $out);
- var_dump($out);
- for ($i=0; $i < count($out); $i++)
- {
- $file = fopen ("list.txt","a+");
- fwrite ($file, $out . "\n");
- fclose ($file);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement