PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

fdf_get_encoding> <fdf_get_ap
Last updated: Fri, 18 Jul 2008

view this page in

fdf_get_attachment

(PHP 4 >= 4.3.0, PHP 5)

fdf_get_attachment — Estrae file racchiusi nel FDF

Descrizione

array fdf_get_attachment ( resource $fdf_document , string $fieldname , string $savepath )

La funzione estrae un file indicato dal "selettore di file" fieldname e lo memorizza in savepath . Il parametro savepath può essere il nome di file o una directory esistente nella quale verrà creato il file con il suo nome originale. Eventuali file con il medesimo nome saranno sovrascritti.

Nota: Sembra che non ci sia altro metodo per risalire al nome originale del file se non quello di scaricare il file nella directory indicata da savepath e rilevare il nome con cui viene scritto.

La matrice restituita contiene i seguenti indici:

  • path - percorso in cui viene archiviato il file size - dimensione del file in bytes type - mimetype se dato nel FDF

Example #1 Scaricare un file inserito

<?php 
  $fdf 
fdf_open_string($HTTP_FDF_DATA);
  
$data fdf_get_attachment($fdf"filename""/tmpdir");
  echo 
"Il file è stato scaricato in $data[path]";
?>



add a note add a note User Contributed Notes
fdf_get_attachment
There are no user contributed notes for this page.

fdf_get_encoding> <fdf_get_ap
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites