PHP for recent USA and World earthquakes

hi Ken
i did play with my TZ on my computer (i have my own server at home windows XP PRO with IIS) but nothing
Finally i did not set TZ ($ourTZ = “”:wink: and work ok
Best regards,
Panos

I’m using the newest version of your California/Nevada earthquake script and the Update time is always blank. This is a new problem for me it was working fine till just recently, I don’t remember when it stopped working but I’m thinking it was when I updated to the newest version.

http://www.weathercat.net/quake/ca.php

Yes, it does have a small problem with the update= date…

Try this one: http://saratoga-weather.org/quake-CANV.php?sce=view (California/Nevada only)

Best regards,
Ken

Is it just me or did the World earthquakes script break?

http://www.weathercat.net/wxquakeworld.php

Working OK for me…http://stillweather.com/wxquake.php

Edit…sorry now I see you meant “world”.

Ken doesnt have a Demo on his page, so cant tell if its everyone or not having issues.

Mine is broke also.

It appears the USA, CANV scripts are working, but the WORLD script is not functioning correctly (probably due to a change in the USGS website).

I’ll do an update soon … thanks for the heads-up about the problem!

Best regards,
Ken

I’ve updated the quake-WORLD.php script to V1.10 to accommodate the changes made to the USGS World list.

Download V1.10 from Saratoga-Weather.org - Scripts - Earthquake info from USGS

Also updated the WD-World and WD-World-ML template distribution zips with this changed script.

Best regards,
Ken

Thanks Ken, that fixed mine :lol: 8) :lol:

Hi Ken

Script updated and it works perfect in both my Danish and English page.

Thank you very much

Best regards,

Henrik

Thank Ken, it’s working now. :slight_smile:

Hi Ken and thanks for the script

I get a TZ error

http://www.mangawhaiweather.co.nz/test/quake-WORLD.php

Some Windows installations and Unix servers with strict Safe Mode options enabled, do not allow the timezone command being used.
Safe mode is too restrictive for many of the PHP scripts we use.

By far the best solution is to get your host to turn off “safe mode”, or to add “TZ” into the “allowed list”.

Safe mode was removed from PHP 6, probably because it is troublesome.

The PHP safe mode is an attempt to solve the shared-server security problem. It is architecturally incorrect to try to solve this problem at the PHP level, but since the alternatives at the web server and OS levels aren’t very realistic, many people, especially ISP’s, use safe mode for now.

Where and how do I add “TZ” to the allowed list?