Skip to content

Instantly share code, notes, and snippets.

@geotheory
Created January 1, 2015 23:23
Show Gist options
  • Save geotheory/e1275221680c668485b0 to your computer and use it in GitHub Desktop.
Save geotheory/e1275221680c668485b0 to your computer and use it in GitHub Desktop.
PHP Simple HTML DOM Parser - comma test
<!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