I have tried it with nothing, with error_reporting(0);, and with error_reporting(E_ALL);.saratogaWX wrote: ↑Mon 16 Mar 2020 7:20 pm you can put error_reporting(0); at the start of the script.
That tells me the script contains errors that prevent displaying the image. It does not list any errors.saratogaWX wrote: ↑Mon 16 Mar 2020 7:20 pm You can try doing a view-source on the local URL to the script
There does not seem to be a script anywhere in this thread for me to download and swap to, the first post links to http://www.beteljuice.co.uk/DEMOS/_astro.php but I cannot manage to download from there.
mine has
Code: Select all
############################################################################
# Project: heavens.php #
# Module: Replacement for graphics-sun-chart.php or similar #
# Purpose: Draw a graphic sun chart. #
# Version: 0.1 - Feb 2013, original - beteljuice #
# info: Requires PHP 5+ and GD library #
# #
# Now correctly draws events that span midnight #
# Now correctly draws events that span more than 24hrs #
# Can use date_sun_info OR date_sunrise (different results ! ) #
# 24hr clock dial Position OR #
# 'heavens' revolve (anti-clock) East 'rise' #
# Lat, Lon, date, TZ, method can all be 'posted' (see code) #
# Version: 3.0 - June 2013, Incorporating improvements by Mark Crossley #
# Version: 3.1 - Sept 2013, optional hour markers added - beteljuice #
# Authors: beteljuice Feb 2013, Mark Crossley June 2013 #
# #
EDIT: beteljuice tells me this is not his latest script, see his reply to this post
Having swapped to using that and got an image, I see that what I added was some text to show the times, so sometime, I will try reapplying my previous changes, but I am in no hurry.