Jump to content

MaartenM7

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

MaartenM7's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. HI! I got a problem... I have a list of video items, they are automatically generated by a php script. All I have to do is put a video file into a directory and the video will apear on the website. Now, this list of video's is unorderd... What means ít's a total mess. I want the script to put them in alfabetical order but I don't know how:( Can anyone help me? Thank you in advance, Maarten Mandemaker, The Netherlands Here's the piece of script: --------------------------------------------------------------------------------------------------- <!-- the flvplayer --> <div id="player"> <object type="application/x-shockwave-flash" data="flvplayer.swf?file=<?=$files[$file-1]?>" width="<?=$width?>" height="<?=$height?>" wmode="transparent"> <param name="movie" value="flvplayernl.swf?file=<?=$files[$file-1]?>&autoStart=false" /> <param name="wmode" value="transparent" /> </object> </div> <!-- the navigation --> <div id="nav"> <ul> <? // php loop for printing all the links for ($i=0; $i<=sizeof($files)-1; $i++) { $p1 = strrpos($files[$i],"/") + 1; $p2 = strpos($files[$i],".flv"); $name = substr($files[$i],$p1,($p2-$p1)); echo "<li><a href=\"flvplayer.php?file=".($i+1)."\">".$name."</a></li>\n"; } ?> </ul> </div> </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.