Force image download is mandatory in some content downloading websites to provide a good and smooth user experience. Even more, we have to allow direct download of an image from a link. If we provide an image link to the user for downloading, the browser will open that image in its self rather than downloading […]
Latest in PHP
Learn PHP with our excellent PHP tutorial with in-depth explanations and PHP examples along with proper output and description.
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 has 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 the uploaded file to its destination directory is very important via the back-end. PHP provides move_uploaded_file() method by default to move uploaded file. PHP 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 Create a Simple PHP REST API
PHP REST(RESTful) API is the most used method of data transfer. However, there are several other ways to transfer data transfer, but PHP REST is popular among them, so let’s know a little bit about PHP REST APIs. What is the REST API? REST API is known as RESTful API, is a universal method of […]
