Simple PHP user register and login class
Featuring PHP OOP design with injection safe PDO MySQL queries, this easy to read class for a user registration, login and logout system serves as a backbone to any user/account…
PHP backend web language
Featuring PHP OOP design with injection safe PDO MySQL queries, this easy to read class for a user registration, login and logout system serves as a backbone to any user/account…
Occasionally you will get a string that is longer than what you designed for, this gets fixed by printing a set amount from the string and affixing … onto the…
PHP comparison operators have == as being equal and === as being identical. This means that == has to change or convert the type to check if it is equal….
MySQL does not have a boolean column type, there is no way to systematically store true/false in a database. Except tinyint comes and saves the day. With tinyint using 1…
Creating an automated system to submit my blog posts to my subreddit using PHP and the Reddit API. The idea is every couple of hours a check will be made…
A class that has inheritance in PHP OOP is one that obtains or gets all the properties and methods from its parent class. This is useful when you need to…
Out of all operators in programming, it is the modulo operator that goes under the radar most. Perhaps this is due to a lack of need or even an understanding…
Often cURL in PHP is used to download whole webpages, another great use is downloading and saving images. Using cURL to save images is used over the file_put_content(file_get_contents()) because you…
If downloading images using PHP the first step in avoiding errors is ensuring that the URL is valid. A great method for this is to check the URL HTTP response…
Putting PHP versions 7.1, 7.2, 7.3 and 7.4 against each other in a simple benchmark driven comparison for time taken to do calculations. Results are from using this benchmark script….