![]() |
php help
so I am trying make a script that will goto 1 url or the other randomly
I figured I would make it select a random number then if $num = 1 goto www.google.com and if $num = 2 then goto www.yahoo.com I can't seam to get it to work I can however get the number part to work <?php $num = mt_rand(1, 2); echo($num); ?> how would I go about finishing that? |
PHP Code:
|
Levi can you msg me i been trying to reach you for over a week
|
What he said. Not sure you actually need the ob_start, you could echo a javascript redirect, depending what works for you.
|
@Fris, yeah I got your support ticket this morning. Haven't been on AIM much and had to disconnect my phone lines. College semester started 2 weeks ago been keeping me busy that's all..
@fluffygrrl, You don't in that example, but it's still good practice. |
can you please hit me up when you can? thanks
|
PHP Code:
|
All times are GMT -7. The time now is 12:46 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123