$buf=file_get_contents(„http://www.addurl.nu/“);
preg_match_all(„/<TR bgcolor=(.*?)<A HREF='(.*?)’ TARGET=’_BLANK'(.*?)/“,$buf,$matches);
foreach ($matches[2] as $webdir) { echo „<a href=’$webdir’>$webdir</a>\n“; };
Извеждане на всички директории от AddUrl.nu
Категория: Web
Един отговор
(.*) винаги са били доста тежки,
по-добре е използването на ([^’]+) вместо втория (.*)
Logged in as {{omniform_current_user_display_name}}. Edit your profile. Log out? Required fields are marked *
Your email address will not be published. Required fields are marked *
Comments are closed.
You must be logged in to post a comment.