Hello,
I have no experience whith php, but I need to use one script I've downloaded from one tuturial, but don't know how...
The script receives one array, than split it into files (this is a upload script). What I need is to be able to define $icone = file1 and $imagem = file2, but I don't know how!
Can you please help?
this is the script
if($amount) {
$amount=explode('|',$amount);
$path=$POST['path'];
if(!$path) $path='.';
if(substr($path,-1)!='/') { $path.='/'; }
$upStatus='';
foreach($amount as $i) {
$file_name = $FILES['uploadFile'.$i]['name'];
$tmp_name = $_FILES['uploadFile'.$i]['tmp_name'];
$file_name = stripslashes($file_name);
if($upStatus!='') $upStatus.='';
$upStatus.="$file_name";
$fsize=filesize($tmp_name);
if(!$fsize) $fsize=0;
$upStatus.=''.$fsize;
$file_name = str_replace("'","",$file_name);
$copy = copy($tmp_name,$path.$file_name);
$icone=$file_name[00];
$imagem=$file_name[01];
The rest of the script is my Mysql conection
Many thanks, hope to ear good news form you!
Pluda