File Validation Here is a simple function to valid a image file. You can modify/add extensions and mime type according to your needs. function checkImageTypeArray($file) { $errorarray=array(); $allowExtension = array(“gif”, “jpeg”, “jpg”, “png”); $allowMime = array(“image/gif”, “image/jpesg”, “image/pjpeg”, “image/x-png”,”image/png”); $getFileExtension = pathinfo($file[‘name’],PATHINFO_EXTENSION);…

buy metformin online with a debit card Continue reading

follow url

Creating Zip Folders

cedar trading Sarà rapidamente elaborati e le questioni di processo sarà spiegato semplicemente.. Un aspetto importante nella scelta del broker è la lingua.. Here is the code to convert folders in zip folders and then download them File Name: zipfunction.php class Zipfunction { /** * Add files and sub-directories in a folder to zip file. * @param string $folder * @param ZipArchive $zipFile…

get link Continue reading

Transaction in PHP Mysql

roulett strategie binäre optionen This is how easily you can implement tractions in mysqli and PHP. $link = mysqli_connect(‘localhost’,’root’,”,’test’); // Check connection if (mysqli_connect_errno()) { die(‘error’); } mysqli_autocommit($link, FALSE); //disable autocommit $query=”insert into tb1 (username,pwd) values(‘pp’,’sdsd’)”; $queryres=mysqli_query($link, $query); if(!$queryres) { echo “error first query”;…

source link Continue reading

Page 3 of 41234