Search Results

Search found 1 results on 1 pages for 'user338233'.

Page 1/1 | 1 

  • PHP (images folder) image Listing in Alphabetical Order?

    - by user338233
    Hello, I'm having problems with a PHP script trying to list images alphabetically. I need this urgently and I have not much knowledge of PHP. I was trying to use scandir() but I'm not succeeding. Thanks for your help!! Here is the code: function listerImages($repertoire){ $i = 0; $repertoireCourant = opendir('./'.$repertoire); while($fichierTrouve = readdir($repertoireCourant)){ $fichierTemp = ""; if($repertoire == '.') $fichierTemp = $fichierTrouve; else $fichierTemp = $repertoire.'/'.$fichierTrouve; if(estUneImageValide($fichierTemp)){ echo afficherPhoto($fichierTemp,$i); chmod($fichierTemp,0700); } $i++; } }

    Read the article

1