hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
home
/
ubuntu
/
bmse.net
/
Upload FileeE
HOME
<?php require_once("includes/application_includes.php"); # Getting exhibitor booth logos from the database $boothlogosfromDB = $db->getRows("SELECT `image_name1` FROM `bmse_members` WHERE `image_name1`!=''"); //$boothlogosonefromDB = $db->getRows("SELECT `booth_logo` FROM `bmse_booth_configs` WHERE `booth_logo`!=''"); $boothlogos=array(); foreach($boothlogosfromDB as $boothlogo) { $boothlogos[]=$boothlogo['image_name1']; } /* foreach($boothlogosonefromDB as $boothlogosone) { $boothlogos[]=$boothlogosone['booth_logo']; }*/ //ArrayDisplay($boothlogos); //exit; /* Store the path of source file */ $source = 'exhibitoradmin/images/exhibitor_images/'; /* Store the path of destination file */ $destination = 'exhibitoradminv2022/images/exhibitor_images/'; /* Copy File from imagesource to imagedestination folder */ /* if( !rename($filePath, $destinationFilePath) ) { echo "File can't be moved!"; } else { echo "File has been moved!"; } */ $i=1; foreach($boothlogos as $boothlogo){ if (file_exists($source.$boothlogo)){ @copy($source.$boothlogo, $destination.$boothlogo); chmod($destination.$boothlogo, 0777); $i++; } //echo 'done'; //exit; } echo $i; ?>