.php3을 .php 바꾸려고 하는데 eregi 적용이안되네요?
본문
삼일째 해봐도 안되네요ㅠㅠ
고수님들 도와주세요
else if(eregi("\.mid",$fichier)){$image="mid.gif";$nom_type=$mess[9];}
else if(eregi("\.txt",$fichier)){$image="txt.gif";$nom_type=$mess[10];}
else if(eregi("\.js",$fichier)){$image="js.gif";$nom_type=$mess[11];}
else if(eregi("\.gif",$fichier)){$image="gif.gif";$nom_type=$mess[12];}
preg_match 바꾸어도 되질않네요...
else if(preg_match("\.mid",$fichier)){$image="mid.gif";$nom_type=$mess[9];}
else if(preg_match("\.txt",$fichier)){$image="txt.gif";$nom_type=$mess[10];}
else if(preg_match("\.js",$fichier)){$image="js.gif";$nom_type=$mess[11];}
if(preg_match("\\\\",$racine)){$slash="\\";}
else {$slash="/";}
return $slash;
if(preg_match("\.\.",$rep)) {$rep="";}
if(preg_match("\.txt|\.php|\.php|\.sql|\.css|\.js|\.htm|\.html|\.cgi|\.pl",$fichier))