![]() |
php gurus ... plz help $$
i build my galleries with this include :
<?php include("../temp.php"); ?> how to code it that temp.php is random. i mean how to code it to let the include be a random .. like temp1.php , temp2.php ... etc ... i am shure for a guru this is a joke ... if you help me i will send you a few epass bucks. ICQ 132818937 |
bump for u
|
|
Code:
$x = rand(1,20); |
Quote:
thats a fine solution for your problem. |
Quote:
|
thx a lot :)
|
Efficient. I like that. I'd pad it just so filenames would match (banner001.php), etc, but that's just my pedantic design.
Code:
$x = printf(%02d, rand(1,20)); darksoul: Got a second for a question or two? I'm rather new to supporting AT3, and for some reason, in.cgi seems to semi-randomly zombie on a new install. This site is not doing anything horribly exotic, either - it's using stock SSI. It eventually clears up, but it bothers me that I can get a quick burst of traffic and have 20 zombies. This machine is also production, so I can't just drop gdb on it and try to figure what the @#$@! is going on. |
I this thats saver!
PHP Code:
|
All times are GMT -7. The time now is 07:23 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123