/ Published in: PHP
Expand |
Embed | Plain Text
<?php $getLocationViaGoogle = function ( $html ){ $regex = "#<\w+\s\w+=\"tbos\">([^<]{3,})<\/\w+>#i"; return $matches[1][0]; }; ?>
Comments
Subscribe to comments
You need to login to post a comment.

I receive "Parse error: syntax error, unexpected T_FUNCTION in /home/user/mysite.com/test.php on line 7."
Any ideas?
It was the PHP version. Switched over to 5.3 and it worked. Took of the .br in the domain and it now gives me a location of West Orange, NJ. I assume this is the server's location than?