Rev 5 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5 | Rev 13 | ||
---|---|---|---|
1 | <?php |
1 | <?php |
2 | 2 | ||
3 | define('UA_NAME', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)'); |
3 | define('UA_NAME', 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)'); |
4 | 4 | ||
5 | function file_get_contents2($url) { |
5 | function file_get_contents2($url) { |
6 | $out = array(); |
6 | $out = array(); |
7 | exec("vtor -- wget -q -U ".escapeshellarg(UA_NAME)." -O - ".escapeshellarg($url), $out, $code); |
7 | exec("vtor -- wget -q -U ".escapeshellarg(UA_NAME)." -O - ".escapeshellarg($url), $out, $code); |
8 | if ($code != 0) return false; |
8 | if ($code != 0) return false; |
9 | return implode("\n", $out); |
9 | return implode("\n", $out); |
10 | } |
10 | } |
11 | - | ||
12 | ?> |
- | |
13 | 11 |