I'm trying to use PHP to return three simple variables from a web page. The web page is: http://areacode.org/519 My code is below:
<!doctype html>
<html>
<head>
<title>Untitled Document</title>
</head>
<?php
//variables
$quickurl = idk;
$country = idk;
$State = idk;
$city = idk;
//end of variables
$test = file_get_contents("http://areacode.org/519");
//$strip = strip_tags($test); Not sure if this is needed.
echo ("<center>Info about Area code! Country: ".$country.". State: ".$state.". City: ".$city.". Quick reference URL: ".$quickurl."</center>");
?>
<body>
</body>
</html>
I am attempting to strip out the country, state, and major city and the quick url. I have looked around, but no help. I think I may just be a little confused. Any help?