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 `company_logo` FROM `bmse_members` WHERE `company_logo`!=''"); //$boothlogosonefromDB = $db->getRows("SELECT `booth_logo` FROM `bmse_booth_configs` WHERE `booth_logo`!=''"); $boothlogos=array(); foreach($boothlogosfromDB as $boothlogo) { $boothlogos[]=$boothlogo['company_logo']; } /* foreach($boothlogosonefromDB as $boothlogosone) { $boothlogos[]=$boothlogosone['booth_logo']; }*/ /* Store the path of source file */ $source = 'exhibitoradmin/images/companylogos/'; /* Store the path of destination file */ $destination = 'exhibitoradminv2022/images/companylogos/'; /* 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; ?>