Results 1 to 8 of 8
-
31st Jan 2011, 09:21 PM #1OPBannedWebsite's:
servsilla.com[IPB 2.3.x] Coding Request
Hey everyone!
Here is my new forum: http://www.psrevolution.net/
If you notice theres nothing in it.
What I need is the following:
http://www.psrevolution.net/style_im...ges/rotate.php
or
PHP Code:<?php
/*
By Matt Mullenweg > http://photomatt.net
Inspired by Dan Benjamin > http://hiveware.com/imagerotator.php
Latest version always at:
http://photomatt.net/scripts/randomimage
*/// Make this the relative path to the images, like "../img" or "random/images/".
// If the images are in the same directory, leave it blank.
$folder = '';
// Space seperated list of extensions, you probably won't have to change this.
$exts = 'jpg jpeg png gif';
$files = array(); $i = -1; // Initialize some variables
if ('' == $folder) $folder = './';
$handle = opendir($folder);
$exts = explode(' ', $exts);
while (false !== ($file = readdir($handle))) {
foreach($exts as $ext) { // for each extension check the extension
if (preg_match('/\.'.$ext.'$/i', $file, $test)) { // faster than ereg, case insensitive
$files[] = $file; // it's good
++$i;
}
}
}
closedir($handle); // We're not using it anymore
mt_srand((double)microtime()*1000000); // seed for PHP < 4.2
$rand = mt_rand(0, $i); // $i was incremented as we went along
header('Location: '.$folder.$files[$rand]); // Voila!
?>
Here are the images I want to be rotated:
http://www.psrevolution.net/style_im...s/header_0.png
http://www.psrevolution.net/style_im...s/header_1.png
http://www.psrevolution.net/style_im...s/header_2.png
http://www.psrevolution.net/style_im...s/header_3.png
When your done please upload to see if it's working. If it does then PM me it and you might receive a reward. (I won't tell anyone the reward, so don't ask me what it is)
Thank you!
P.S Please try to figure this out a.s.a.p!ServSilla Reviewed by ServSilla on . [IPB 2.3.x] Coding Request Hey everyone! Here is my new forum: http://www.psrevolution.net/ If you notice theres nothing in it. :) What I need is the following: http://www.psrevolution.net/style_images/psr/random_images/rotate.php Rating: 5
-
31st Jan 2011, 09:56 PM #2Respected Member
check pm.
-
31st Jan 2011, 09:56 PM #3OPBannedWebsite's:
servsilla.comI replied. Can I have the code instead of a link? So I can try it out.
-
31st Jan 2011, 10:36 PM #4Member
done check pm
-
31st Jan 2011, 10:58 PM #5OPBannedWebsite's:
servsilla.comThis Job is Done.
Mod please close.
-
31st Jan 2011, 11:13 PM #6Respected Member
Yep. You got it in pm.
-
31st Jan 2011, 11:16 PM #7OPBannedWebsite's:
servsilla.comNo Lock Down, r0ck fixed it for me
Thanks anyways for your help
-
31st Jan 2011, 11:41 PM #8Respected Member
No problem.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Request Full Desine A site For Rdp Providing ( Coding Also )
By ::CheapRdp:: in forum Graphics AreaReplies: 3Last Post: 26th Feb 2012, 07:26 PM -
Zen Coding - Set of plugins for HTML and CSS hi-speed coding
By soft2050 in forum Web Development AreaReplies: 5Last Post: 19th Feb 2012, 09:31 PM -
[Request] Logo Request For musicbon.us
By Villa in forum Graphics AreaReplies: 4Last Post: 11th Feb 2012, 02:53 PM -
phpBB coding request.
By CoolAsIce in forum Web Development AreaReplies: 1Last Post: 4th Feb 2011, 04:06 AM -
[Request] Social Media Script [Request]
By Cometrex in forum Webmaster DiscussionReplies: 8Last Post: 16th Nov 2009, 06:52 PM
themaLeecher - leech and manage...
Version 5.03 released. Open older version (or...