FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » randomly sorting files in php
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
randomly sorting files in php [message #180578] Fri, 01 March 2013 01:49 Go to previous message
Cal Dershowitz is currently offline  Cal Dershowitz
Messages: 36
Registered: February 2013
Karma:
Member
Hello ng,

I've got a working localhost and a couple php scripts that run so far,
so I wanted to see what types of things I can do and cannot do. This is
by no means clear to me to me now.

What I have is a collection of my own music files that I have put in the
path of where localhost is looking for things; with my default install,
that is /var/www.

I wrote a bash script to export the files off my mp3 player, because
neither my gf nor I who bought these things can figure how to make them
play randomly. Yes we have achieved a certain age, where determination
makes up for a lot.

$ cat music1.sh
#!/bin/bash

set -e
FROM='CCE0-705F'
DIR='music1'
mkdir -p $DIR
cp $FROM/*.wma $DIR/
cp $FROM/*.mp3 $DIR/
cd $DIR
ls -l
exit 0
$

So does php have a way to do this that is as simple as it might be in
perl, for example?
--
Cal
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to avoid the use of session variables in this script
Next Topic: all done
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 21:48:34 GMT 2024

Total time taken to generate the page: 0.04989 seconds