#IMAGE UPLOAD if ($_FILES[‘list1’][‘name’] != “”) { $allowed_ext = array(“jpg”, “jpeg”, “png”, “gif”); $extension = explode(‘.’, $_FILES[“list1”][“name”]); $ext = strtolower(end($extension)); if (in_array($ext, $allowed_ext)) { $newname …
Read MoreImage
Php-Get image name and extension
<?php $image = “glass.jpg”; //Getting image name $img_name = pathinfo($image, PATHINFO_FILENAME); //Getting image extension $img_ext = pathinfo($image, PATHINFO_EXTENSION); ?>
Read More