Thanks for the reply. I would like to display the times on my wordpress website, something like " get the timestamp and display the prayer times for today" and then i set the latitude and longitude and calculation method.
If i get that right, i would like to display prayer times for the whole month as well, in a table. I hope that is more clearer, sorry i don’t know the right terminology to use.
start with the data you want to build your script upon, dates from today until 30 days in the future. so you can use an instance of DateTime wichich defaults to now and then modify() it with +1 day within a loop. Looks like the class requires the date in the format of getTimestamp()
It was my understanding that the script takes care of all that heavy lifting as it calculates the times for the desired latitude and longitude. I might be wrong though.
Please take a look at this from the sample.php to see if it can help me
just have a look at the function signature, it requires a date. this date (or all dates for a given time range) can be calculated with the steps i posted (could be improved by using DatePeriod). Within the example you just have to adjust start and end times.