How to Compress Image Size Without Losing Quality in PHP

PHP provides the ability to compress images without losing the quality of it. Even more, we can resize images in PHP to generate thumbnails and lightweight web images. PHP provides some default functions to compress images and to resize them. Many popular Core-PHP frameworks and CMS use default function to generate thumbnail and images without […]

How to Move Uploaded File in PHP

Move uploaded file to its destination directory is very important via back-end. PHP provides move_uploaded_file() method by default to move uploaded file. How to use move_uploaded_file() method In PHP uploaded file first goes to temp folder of server. The server discards uploaded files from the temp folder if not moved after uploading. So, moving the […]

Mysqli_fetch_assoc vs Mysqli_fetch_array [With Example]

mysqli_fetch_assoc() and mysqli_fetch_array() both are used to print result data of SQL query in PHP. Mysqli_fetch_assoc vs Mysqli_fetch_array has just a single difference in accessing resultant data. Difference between mysqli_fetch_assoc() and mysqli_fetch_array() The major difference between mysqli_fetch_assoc and mysqli_fetch_array is the output format of result data. mysqli_fetch_assoc returns data in an associative array and mysqli_fetch_array […]

How to Include File in PHP [All Methods]

There are two methods to include a file in PHP. Include() Method Require() Method Include file in PHP is helpful to append various global or config files. We can include .php files via include and require functions. We can write global functions and classes in a config file and include them where it is needed. […]