Sto usando il class.uploader.php trovato su http://www.verot.net ma vorrei rinominare il file caricato usando un valore dinamico presente nella variabile $id_bambino
purtroppo il sistema non interpreta la variabile che se sostituita ad una semplice stringa cambia il nome del file correttamente con il metodo file_new_name_body
Probabilmente è un errore di sintassi perché non mi intendo molto di programmazione ad oggetti...

Codice PHP:
include_once'class.upload.php';
    
$file $_FILES['my_field'];
    
$handle = new Upload($file);
        
    
// then we check if the file has been uploaded properly
    // in its *temporary* location in the server (often, it is /tmp)
    
if ($handle->uploaded) {
      
$handle->file_new_name_body   $id_bambino;
      
$handle->image_resize          true;
      
$handle->image_ratio           true;
      
$handle->image_y               600;
      
$handle->image_x               600;
      
$handle->jpeg_quality           95;
      
// now, we start the upload 'process'. That is, to copy the uploaded file
        // from its temporary location to the wanted location
        // It could be something like $handle->Process('/home/www/my_uploads/');
        
$handle->Process($folder);