???
    ~
Advanced Hosters -

GostonP
: 19.07.2013
: 487
# : 29, 2014 11:12 am
, (5) ,- txt , , ??? :smk:

exolon
V.I.P.
: 22.11.2007
: 2398
# : 29, 2014 1:32 pm
content downloader

!
| TDS |

GostonP
: 19.07.2013
: 487
# : 29, 2014 2:23 pm
, -, .. !
! :smk:
!

banzai
: 24.05.2007
: 729
# : 29, 2014 7:39 pm
STGrabber
,

GostonP
: 19.07.2013
: 487
# : 01, 2014 11:53 am
???
, , - , - ??? !
: 1) , ...
2)- ....

:

<?php
ob_implicit_flush();
$urls = file("urls.txt");
$file_titles = fopen("titles.txt", "a");
$file_descs = fopen("descriptions.txt", "a");
$pattern1 = "/<title>(.*?)<\/title>/is";
$pattern2 = "/<meta name=(\"|')description(\"|') content=(\"|')(.*?)(\"|')(.*?)>/is";
foreach ($urls as $one_url)
{
    $html = file_get_contents(trim($one_url));
    preg_match($pattern1, $html, $matches);
    fwrite($file_titles, $matches[1]."\n");
    preg_match($pattern2, $html, $matches);
    fwrite($file_descs, $matches[4]."\n");
    echo $one_url . " done.<br />";
}
fclose($file_titles);
fclose($file_descs);
?>



:smk:
!

sawm
V.I.P.
: 16.01.2008
: 3108
# : 02, 2014 11:00 pm
10
Stimul Cash - ! Smile . Wink

exolon
V.I.P.
: 22.11.2007
: 2398
# : 03, 2014 4:49 pm
GostonP ():
: 1) , ...


fwrite($file_titles, $matches[1]."\n"); fwrite($file_titles, $matches[1]."\r\n");

, . . content downloader .
!
| TDS |

GostonP
: 19.07.2013
: 487
# : 04, 2014 1:15 am
exolon ():
GostonP ():
: 1) , ...


fwrite($file_titles, $matches[1]."\n"); fwrite($file_titles, $matches[1]."\r\n");

, . . content downloader .



- !

, content downloader ! :smk:
    ~