Browse code

메인 실행파일 추가

Kang, Ikseon authored on18/03/2018 12:32:52
Showing1 changed files

1 1
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+// http://simplehtmldom.sourceforge.net/
4
+include "lib/simple_html_dom.php";
5
+
6
+$url = "http://media.daum.net/cp/11?page=1&regDate=20171111";
7
+
8
+$html = file_get_html($url);
9
+
10
+foreach($html->find('a') as $a) {
11
+  echo $a->href. "\n";
12
+}
13
+
14
+?>