PHP PDO MySQL cheat sheet
PHP PDO is a MySQL handler which uses object orientation. As PDO executes queries with prepared statements it is (with correct usage) safer than MySQLi. Below is the PHP PDO…
PHP backend web language
PHP PDO is a MySQL handler which uses object orientation. As PDO executes queries with prepared statements it is (with correct usage) safer than MySQLi. Below is the PHP PDO…
This is a method to check if a host name is accessible i.e it is online, by using PHP. With fsocketopen() a connection will be created, if it fails false…
Counting or checking if your PDO MySQL query found a row relies on one key object called rowCount. rowCount returns the number of rows affected by the last executed query….
Running cron jobs on your Ubuntu server to call PHP scripts in a timely manner. The first step would be creating a PHP file that when called will leave proof…
If you are downloading and archiving images majority of the time you can compress them heavily to be able to store more. For reasons such as: never viewing the image…
Setters and Getters in PHP are object methods used in OOP programming. The basis being you set a property to your value and then you can get it. Using setters…
Using mixed character strings to identify objects makes more sense due to the greater amount you can assign and their complete unpredictability. Why strings? Using numerals 1 through to 234,567,890…
Compressing a jpg file in PHP can be done without installing a third-party library, we call this method Vanilla as it is done stock standard, no extras needed. Imagick is…
Checking if a channel is live and streaming on Twitch requires a client id, you can get your client id from here. The endpoint for getting a streams information is…
Installing the new PHP 7.4 Beta 4 on an Ubuntu 18.04 server, 7.4 Beta4 was released on the 22nd of August 2019. Start by updating package lists and information sudo…