PHP Start

After finishing Edabit i started to make my index page. to get a bit of a feel for PHP and how it would appear in the browser i decided to start with an easy page showing the current date

this shows as; hi! today’s date is Month day, year

Then i thought it would be fun to see if i could do some small super easy calculations with variables so i wrote a bit that checked the day in one weeks time

this now shows as; hi! today’s date is May 18, 2021
The date in exactly one week will be May 25, 2021

there is a problem with the second bit of code. if the current date 24≥31, in a month with 31 days the date in one week shows up as 32≤38. this is because i told the program to just add 7 to the value of the day and the program doesn’t check whether or not that is a valid date and also doesn’t know how to count into the next month. i could probably fixs this problem however im just messing around so i cant really be asked to waist even more of my o so valuable time ironing out the wrinkles

The very short, usles and ever so slightly broken index page