PDA

View Full Version : How do I do this.



Coldplay
16-02-2009, 11:45 PM
If I wanted to create a code which would randomly select a URL between;

http://www.imdb.com/title/tt0100001/

and

http://www.imdb.com/title/tt1300000/ (http://www.imdb.com/title/tt5000000/)

How would you do that? :)

(Or basically If I just wanted it to pick a RANDOM movie off IMDB)

Agnostic Bear
16-02-2009, 11:56 PM
<?php header("Location: http://www.imdb.com/title/tt" . rand(1000001, 1300000) . "/"); ?>

Want to hide these adverts? Register an account for free!