Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    limitare estensioni upload

    ciao a tutti vorrei chiedere se c'è un modo per limitare le estensioni ammesse quando si invia un file a ese3mpio solo i file . rar
    grazie

  2. #2
    $allowType = array( 'jpeg','jpg','gif','png' );

    function endWith($name,$arrayEnd)
    {
    for($i=0;$i<count($arrayEnd);$i++)
    if(eregi('\.'.$arrayEnd[$i].'$',$name)) return true;

    return false;
    }

  3. #3
    Without faith, nothing is possible. With it, nothing is impossible
    http://ilwebdifabio.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.