Making XML Google Maps Work With Dreamhost
Dreamhost has disabled the fopen() php call because of security reasons (fopen() [function.fopen]: URL file-access is disabled in the server configuration).
An alternative is the CURL library.
This is how you have to modify the XML Google Maps plugin
Before:
function parse($path) {
$this→output = "";
if (!($fp = fopen($path, "r";))) {
die("Cannot open XML data file: $path";);
return false;
}
$filecontent = "";
[/sourcecode]
After:
[sourcecode language=‘php']
function parse($path) {
$this→output = "";
$ch = curl_init($path);
$fp = @fopen("temp.xml";, "w";);
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
fclose($fp);
$file = "temp.xml";;
$fp = fopen($file, "r";);
$filecontent = "";