Created
January 1, 2015 23:23
-
-
Save geotheory/e1275221680c668485b0 to your computer and use it in GitHub Desktop.
PHP Simple HTML DOM Parser - comma test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Comma-URL test</title> | |
</head> | |
<body> | |
<h1>Comma-URL test</h1> | |
<p>Let's try and parse: http://en.m.wikipedia.org/wiki/National_Register_of_Historic_Places_listings_in_San_Francisco,_California</p> | |
<?php | |
require 'simple_html_dom_utility.php'; | |
// $url = "http://en.wikipedia.org/wiki/Space"; // positive test | |
$url = "http://en.m.wikipedia.org/wiki/National_Register_of_Historic_Places_listings_in_San_Francisco,_California"; | |
$html = file_get_html($url); | |
echo $html; | |
?> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment