PHP Scripts
Display the Current Date
If you want to display the current date, you can use the following code: The following will output something like: 07/30/2022 03:47:56 pm By calling the time function with time(), you get the number of seconds since Unix Epoch (January 1 1970 00:00:00 GMT). The date function formats the time, converting the seconds into the…
DetailsForm Validation Functions
Easy Data Handler is a free PHP script you can include in your projects. It makes it easy to validate and sanitize form input and data pulled from the database. It has 2 functions, one for validating and another for sanitizing. It can sanitize and validate the most common forms of data. There are plans…
DetailsPHP Get File Size
This PHP script checks and outputs a file size.
DetailsPHP Check if File Exists
This PHP script checks if a file exists.
DetailsPHP Connect to MySQL Database
This PHP script connects to a MySQL database.
DetailsPHP Create a Table in a MySQL Database
This PHP script creates a table in a MySQL database.
DetailsPHP Create File
This PHP script will create a file if it doesn’t exist.
DetailsPHP Create a Database
This PHP script creates a MySQL database.
DetailsPHP Count Characters in a String
This PHP script counts the number characters in a string and outputs the result.
DetailsPHP Simple Contact Form
This is a PHP script for a simple contact form.
Details