Nov 8, 2009

Yet Another Sig Rotator - head of trap17.com gfx crew

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > How-To's and Tutorials > Graphics and Animation

Yet Another Sig Rotator - head of trap17.com gfx crew

saint-michael
i was looking sround game renders for filter stuff when i happen to find this script, this script basically reads the files in your folder. without you the user to provide links into the script.

step 1: create a index.php file with in your images folder. and then paste this code into it, then save now open the index file in your browser and you should see an image. if not pm or pst here and i will help you out.


QUOTE
<?php

if ($dir = opendir("."))
{
$list = buildimagearray($dir);
displayrandomimage($list);
}

// This function reads all the files in the current directory and adds all image files to the array $list[]
function buildimagearray($dir)
{
while (false !== ($file = readdir($dir)))
{
if (!is_dir($file) && getimagesize($file))
{
$list[] = $file;
}
}
return $list;
}

// This function selects a random image, determines the mime type, opens the file for reading,
// and then outputs the image
function displayrandomimage($list)
{
srand ((double) microtime() * 10000000);
$sig = array_rand ($list);

$size = getimagesize ($list[$sig]);
$fp = fopen($list[$sig], "rb");

if ($size && $fp)
{
header("Content-type: {$size['mime']}");
fpassthru($fp);
exit;
}
}
?>



Step 2:change your images folder like this images>images.png in order for the script to work properly

NOTEi had to make another copy of my gift folder in order for this to work due to the fact that those who had gift sigs from me could still be seen just as a image. but to get it rotating i had to change the folder into a png format to get it to work.


Step3: then paste this code below to get it working. mind you put our own url in their not mine


CODE
[IMG]http://www.saint-michael.trap17.com/gift.png[/IMG]


ON A SIDE NOTE MAKE SURE THE FORUM HAS PHP ACTIVATED OR IT WILL NOT WORK

as you see here im using this as my gift sig rotator





if i have to make any edits i will let you all know.

 

 

 


Comment/Reply (w/o sign-up)

saint-michael
-----I merged this post with the above tutorial since this doesn't really stand as a single tutorial, and it can be considered a follow up to this topic/the above tutorial-----szupie


CODE
<?php
Header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
Header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
Header("Pragma: no-cache");
Header("Content-Type: image/gif");

srand((double)microtime()*1000000);
readfile("http://www.saint-michael.trap17.com/images/sig1-".rand(0,54)+2.".jpg");
?>

here is another script the only downside to this is that you only can sig rotate jpgs and and not png or gifs. well you could just change the jpg into one of them.

just follow the same steps in my other sig rotating scripts.

 

 

 


Comment/Reply (w/o sign-up)

lilqb3
Thanks so much! I've been looking for a script to do this for a while now!

Comment/Reply (w/o sign-up)

ntk100
Thanx man! you're the Best!

Comment/Reply (w/o sign-up)

Exc
Wow! Thank you soo much! I have been looking for one of these for ages... The one I used to use went down permanently and I haven't been able to track down another...

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : Sig Rotator Trap17com Gfx Crew

  1. Adobe Photoshop Blur Tutorial - HEAD of TRAP17.com GFX Crew (6)



Looking for sig, rotator, head, trap17, gfx, crew

See Also,

*SIMILAR VIDEOS*
Searching Video's for sig, rotator, head, trap17, gfx, crew
advertisement



Yet Another Sig Rotator - head of trap17.com gfx crew

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com