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
Re: When a random file is not found then what? [message #185195 is a reply to message #185194] Sat, 08 March 2014 03:56 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 3/7/2014 10:22 PM, richard wrote:
> 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?
>

On a clear disk, you can seek forever...

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
[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: Thu Nov 28 04:38:16 GMT 2024

Total time taken to generate the page: 0.05058 seconds