Category: PHP

How to Add Watermark in Image using PHP | Webslesson

Source Code index.php <?php //index.php $connect = new PDO("mysql:host=localhost;dbname=testing", "root", ""); $message = ''; if(isset($_POST["upload"])) { if(!empty($_FILES["select_image"]["name"])) { $extension = pathinfo($_FILES["select_image"]["name"],PATHINFO_EXTENSION); $allow_extension = array('jpg','png','jpeg'); $file_name = uniqid() . '.' .…