Help - Search - Members - Calendar
Full Version: Url File-access Error
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
giladm
I am using the Create a Visitor Map tutorial and I am getting this error when running:

Warning: DOMDocument::load() [domdocument.load]: URL file-access is disabled in the server configuration in /www/vndv.com/a/p/n/apnews/htdocs/visitormap.php on line 13

Line 13 marked with ==>

<?php

function IPtoCoords($ip)
{
$dom = new DOMDocument();

$ipcheck = ip2long($ip);
if($ipcheck == -1 || $ipcheck === false)
trigger_error('Invalid IP, what are you doing? :|', E_USER_ERROR);
else
$uri = 'http://api.hostip.info/?ip=' . $ip;

==> $dom->load($uri);
$location = (strpos($dom->getElementsByTagName('name')->item(1)->nodeValue, 'Unknown') === false)
? $dom->getElementsByTagName('name')->item(1)->nodeValue
: $dom->getElementsByTagName('countryAbbrev')->item(0)->nodeValue;
swordz
We don't allow outside connections, so I'm afraid this won't work.

swordz
giladm
Thanks for your feedback.

The Create a Visitor is Posted as a tutorial in your website, is it possible that it was working for others and not for me? Could my setting be wrong? (http://www.zymic.com/tutorials/php/create-a-visitor-map )

Is the limitation for outside links is for the Free hosting or for other plans as well?

Thanks,
-Gilad

Bratz
I was trying this tutorial also, rather dissapointed that No Disclaimer was made that it would not work here and the statement was not also included.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.