ciao a tutti,
ho una sistuazione di questo tipo
come posso recuperare l'estensione che in questo caso è zip?Codice PHP:
$file = "../public/download/mio.zip";
grazie mille![]()
ciao a tutti,
ho una sistuazione di questo tipo
come posso recuperare l'estensione che in questo caso è zip?Codice PHP:
$file = "../public/download/mio.zip";
grazie mille![]()
Ciao.
Prova questo:
Codice PHP:
$string = "../public/download/mio.zip";
$ext = substr(strrchr($string, "."), 1);
echo $ext;
![]()
Without faith, nothing is possible. With it, nothing is impossible
http://ilwebdifabio.it
perfetto grazie!![]()