|
PHP script (General Discussion)
PHP script // General Discussion
May 10, 2003, 8:26am
anyone know where a can find a php script which would rotate images, like in
banner rotation systems. so say i have 10 images, and have a sign which has
auto update of 600. i need a script which would change the image every 600
seconds :). i couldn't find it anywhere.
Thanx
-SWE
May 10, 2003, 12:11pm
I believe Pineriver gives a script out for this on his website :-)
[View Quote]"swe" <swe at swe-e.com> wrote in message
news:3ebcd3c4 at server1.Activeworlds.com...
> anyone know where a can find a php script which would rotate images, like
in
> banner rotation systems. so say i have 10 images, and have a sign which
has
> auto update of 600. i need a script which would change the image every 600
> seconds :). i couldn't find it anywhere.
>
> Thanx
> -SWE
>
>
|
May 10, 2003, 3:39pm
you want this for active worlds, or a webpage?
[View Quote]"swe" <swe at swe-e.com> wrote in message
news:3ebcd3c4 at server1.Activeworlds.com...
> anyone know where a can find a php script which would rotate images, like
in
> banner rotation systems. so say i have 10 images, and have a sign which
has
> auto update of 600. i need a script which would change the image every 600
> seconds :). i couldn't find it anywhere.
>
> Thanx
> -SWE
>
>
|
May 10, 2003, 4:14pm
To me it sounds it is to AW, since he talk about sign with update.
Tengel
[View Quote]"pineriver" <pineriver at thenett.com> wrote in message
news:3ebd396c at server1.Activeworlds.com...
> you want this for active worlds, or a webpage?
> "swe" <swe at swe-e.com> wrote in message
> news:3ebcd3c4 at server1.Activeworlds.com...
like
> in
> has
600
>
>
|
May 10, 2003, 4:36pm
ya, activeworlds :)
-SWE
[View Quote]"pineriver" <pineriver at thenett.com> wrote in message
news:3ebd396c at server1.Activeworlds.com...
> you want this for active worlds, or a webpage?
> "swe" <swe at swe-e.com> wrote in message
> news:3ebcd3c4 at server1.Activeworlds.com...
like
> in
> has
600
>
>
|
May 10, 2003, 6:04pm
<?PHP
define ("PICTURE_TIMER", 600); // MODIFY IF NEEDED
$aPics = array (
'pic1',
'pic2',
'pic3',
'pic4',
'pic5',
'pic6',
'pic7',
'pic8',
'pic9',
'pic10'
);
// . for current directory
$DocRoot = '.';
$i = (time()/PICTURE_TIMER) % sizeof($aPics);
$Basename = $aPics[$i].'.jpg';
$Filename = $DocRoot.'/'.$Basename;
Header ('Content-type: image/jpeg');
Header( 'Content-Disposition: attachment; filename='.$Basename );
readfile ($Filename);
?>
[View Quote]swe wrote:
>
> anyone know where a can find a php script which would rotate images, like in
> banner rotation systems. so say i have 10 images, and have a sign which has
> auto update of 600. i need a script which would change the image every 600
> seconds :). i couldn't find it anywhere.
>
> Thanx
> -SWE
|
May 10, 2003, 6:11pm
thanx alot :)
-SWE
[View Quote]"ananas" <vha at oct31.de> wrote in message news:3EBD5B2D.5B84F64B at oct31.de...
> <?PHP
> define ("PICTURE_TIMER", 600); // MODIFY IF NEEDED
>
> $aPics = array (
> 'pic1',
> 'pic2',
> 'pic3',
> 'pic4',
> 'pic5',
> 'pic6',
> 'pic7',
> 'pic8',
> 'pic9',
> 'pic10'
> );
>
> // . for current directory
> $DocRoot = '.';
>
>
> $i = (time()/PICTURE_TIMER) % sizeof($aPics);
> $Basename = $aPics[$i].'.jpg';
> $Filename = $DocRoot.'/'.$Basename;
>
> Header ('Content-type: image/jpeg');
> Header( 'Content-Disposition: attachment; filename='.$Basename );
> readfile ($Filename);
> ?>
>
>
> swe wrote:
like in
has
600
|
|