How to Force Image Download in PHP From a Link

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 […]

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 […]

How to Image Preview Before Upload Using JavaScript

Image preview before the upload is a basic and important feature nowadays in profile registration forms. Image preview helps the user to verify the image before uploading. Even more, the user can select another image if needed before submitting a form. Image preview feature can be implemented through JavaScript, jQuery, or any other JS framework. […]