I want to have an HTML or PHP script/page which will redirect me to a random URL on every reload I execute. Note that the URLs will be inserted by me manually.
Can we do it? and how?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have the URLs in a MySQL database table you can use something like this to give you a random row:
Alternatively if you have them stored in an array you can shuffle() the array and grab the first element: