I’ve just installed a new version pf WAMP, using Apache/2.2.22 (Win32) PHP/5.3.13
MySql 5.1.36. After a great deal of ‘starup’ issues I’m down to hopefully my last problem.
I had numerous ‘data’ problems, until I did some deep investigation. I found that a mysql data
backup that looked like it loaded correctly acually did not.
I’ve done more investigation regarding the mysql data my
WAMP was using. I had reloaded a former mysql data backup into my new mysql installation, and from the wiews
in PhpMyAdmin it okay, however queries returned some ‘strange’ (wrong values) data.
So I made a backup of my production server mysql database, and then imported THAT data.
ALMOST everything returned to normal on my localhost.
EXCEPT for the following…
On production I have this line of php…
$two_two_icon = "http://www.extraalarm.org/mult_alarm_data/graphics/2-2_alarm.png" ;
But on my localhost I have this …
$host= gethostname();
$my_ip = gethostbyname(trim($host));
$two_two_icon = "http://$my_ip/mult_alarm_data/graphics/2-2_alarm.png" ;
When I run the second (localhost) example I now
get the following error…
GoogleMapAPI:createMarkerIcon: Error reading image: http://192.168.254.104/mult_alarm_data/graphics/2-2_alarm.png
Which indicated it could’nt access the local .png file.
This formerly worked fine in my previous WAMP install.
The local IP address is correct.
What I don’t know if this happening because of a misconfiguration which won’t allow ‘external’ images
to be loaded… or what?
If I load the needed .png files from an EXTERNAL
server, it works, but is verrrrry slow. Hence the need
to load it locally. However the GoogleMaps 3.0 API
does nor allow $some_icon= xyz.png. It must be
$some_icon = “http://$my_ip/xyz.png” ; for a ‘fake’
remote load.
This being fixed will return me to ‘normal’, as in
BEFORE my new WAMP.
eatc7402