Project Info:
This site realized in PHP vanilla gathers exercises realized during my learning of the PHP language.
It includes several pages:
- "Menu" page: A .CSV file containing the content of a restaurant menu is formatted and displayed using PHP
- "Reservation" page: A form displays a confirmation message on submit. And an "Opening hours" section tells you if the restaurant is open right now (comparision between the current time and the opening hours set in a variable).
- "Guestbook" page: It allows you to display the messages entered through a simple form.
- "Get a discount" page: It allows you to subscribe to the site's newsletter: filling in the form adds the information to a text file located in the "data" folder on the server.
- "Weather" page: It displays the weather for several locations, thanks to the Openweather API. Use of assynchronous code.
- "Restricted area" page: It uses the PHP Session feature. It allows to display content only if the user has entered an age higher than 18 years in the form. A button allows to exit the session.
- "Blog" page: It displays a complete blog. A link "Login" allows to connect to the administration part. More details about this blog here.