This is a discussion on Google Map within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Sometimes fopen is not allowed on servers, you can try this instead: $url = str_replace (" ", "%20", $url); // ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Sometimes fopen is not allowed on servers, you can try this instead: $url = str_replace (" ", "%20", $url); // Leerzeichen -> %20 //BEGIN MOD $temp=""; $a_url = parse_url($url); $url2 = ""; if (!empty($a_url['path'])) { $url2.=$a_url['path']; } if (!empty($a_url['query'])) { $url2.="?".$a_url['query']; } $fp = fsockopen($a_url['host'], !isset($a_url['port']) ? 80 : $a_url['port'], $temp, $temp, 5); if (!$fp) { echo "ERROR"; // oder andere Ausgabe !! } else { fputs($fp, 'GET ' . $url2 . " HTTP/1.0rnHost: " . $a_url['host'] . "rnrn"); do { $line = chop(fgets($fp)); } while (!empty($line) and !feof($fp)); while (!feof($fp)) { $content = fgets($fp); } } fclose($fp); //END MOD list($statuscode, $accuracy, $lat, $lng) = split(",", $content); No files attached More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Map | michael_s | New osCommerce Contributions | 0 | 08-13-2007 05:17 AM |
| Google Map | michael_s | New osCommerce Contributions | 0 | 08-08-2007 05:59 AM |
| Google Map | michael_s | New osCommerce Contributions | 0 | 08-08-2007 05:26 AM |
| Google Map | michael_s | New osCommerce Contributions | 0 | 08-08-2007 02:14 AM |
| Google Ads | battleaxe | osCMax v1.7 Discussion | 0 | 06-04-2004 02:21 PM |