added original list gatherer

master
Tezza 2015-02-12 21:58:57 +01:00
parent 0a161f6bef
commit e86ec22e0a
1 changed files with 13 additions and 0 deletions

13
src/mailinglists.php Normal file
View File

@ -0,0 +1,13 @@
<?php
echo '<pre>';
$mailmanHTML = file_get_contents( 'https://lists.hackerspace.lu/mailman/listinfo' );
$listPattern = '/<td><a href="listinfo\/(.*?)"><strong>/s';
preg_match_all( $listPattern, $mailmanHTML, $lists );
print_r( $lists[1] );
exit;