I have the line:
// Attempt to load the page
$gm = fopen('http://maps.google.com/maps?q='
. str_replace(' ','+',$q) . '&output=js','r');
At the moment when using this I get the error message:
Warning: fopen(): URL file-access is disabled in the server configuration in................
I was told that this was something that needed to be changed in php.ini on the server side.
Having contacted my hosting company I have now received this reply:
the fopen() function is enabled but only works for local address's it is disabled for remote address's for security reasons and unfortunately this can not be changed. Some developers have found the curl() function to be a suitable replacement as this is enabled on our servers.
could someone tell me more about this curl() function in 'english' rather that that of php.net and tell me whether it could be used as a replacement for the line above.