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

Home » Imported messages » comp.lang.php » When a random file is not found then what?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
When a random file is not found then what? [message #185194] Sat, 08 March 2014 03:22 Go to previous message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma:
Senior Member
I want to set up a routine so that when a file does not exist, another file
is selected.

1) select the year randomly.
2) selectt one of 100 numbers.
3) combine the pair.
4) locate file and play.
5) if file does not exist, do it again until one is found.

My thinking is, create an array of file names.
Then cycle through that until a match is found.

Any other ways?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php exec http url
Next Topic: switch with range of comparisons
Goto Forum:
  

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

Current Time: Fri Nov 01 11:53:16 GMT 2024

Total time taken to generate the page: 0.03886 seconds