- shell_exec: documentation ( source)
- in_array: documentation ( source)
<?php
echo "Selected Source is StorageM";
if (in_array($Idgd, $dir_resul)) {
echo "File Found Transfer will begin";
shell_exec("/var/www/create00/scripts/./XferHres.sh $Idgd $destd");
}
else{
echo "File doesn't Exist!!!";
}