Welcome Guest ( Log In | Register)



9 Pages V  < 1 2 3 4 > »   
Reply to this topicStart new topic
> How To Make A Sig Rotator, for people with multiple sigs
Rating 1 V
Klass
post Jul 23 2005, 03:36 PM
Post #11


Advanced Member
*******

Group: Members
Posts: 147
Joined: 2-June 05
From: Klass-World
Member No.: 7,802



so if I don;t want to do the processing through the internet how do I use absolute paths?

would it be ./sig.png/image.jpg ?
Go to the top of the page
 
+Quote Post
snlildude87
post Jul 23 2005, 04:01 PM
Post #12


Moderator
***************

Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



QUOTE(badinfluence @ Jul 23 2005, 12:10 PM)
array can trim off more nice look, isnt it?
*

I kinda didn't use an array....


QUOTE(Klass @ Jul 23 2005, 12:36 PM)
so if I don;t want to do the processing through the internet how do I use absolute paths?

would it be ./sig.png/image.jpg ?
*

I am using absolute paths. The one you're talking about is relative paths. smile.gif

If you're going to store the sigs in a folder called sigs inside sig.png, then it use be something like
CODE
readfile("sigs/image.jpg");
If going to store the index.php file and all the sigs in sig.png, then it would be
CODE
readfile("image.jpg");
You actually don't need the ./ at the beginning.

Hope that answers your question!
Go to the top of the page
 
+Quote Post
sachavdk
post Jul 23 2005, 08:44 PM
Post #13


Member [Level 1]
****

Group: Members
Posts: 62
Joined: 11-July 05
Member No.: 9,266



Ahm Saint_Michael, wouldn't it be easier to do it this way:

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");
?>


I don't now your full purpose but I do think this one's easier wink.gif

Notice from Klass:
You need to use code tags when typing code.


This post has been edited by Klass: Jul 24 2005, 12:18 AM
Go to the top of the page
 
+Quote Post
snlildude87
post Jul 25 2005, 03:16 AM
Post #14


Moderator
***************

Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



QUOTE(sachavdk @ Jul 23 2005, 05:44 PM)
Ahm Saint_Michael, wouldn't it be easier to do it this way:

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");
?>


I don't now your full purpose but I do think this one's easier wink.gif

Notice from Klass:
You need to use code tags when typing code.

*

Yeah it would actually. Thanks for posting an alternative! I would use a better naming techniques for my sigs, but I don't want to waste my bandwidth.
Go to the top of the page
 
+Quote Post
Saint_Michael
post Jul 25 2005, 04:16 AM
Post #15


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,560
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



but your missing something in the coding, yeah you set up the process for the image to be shown but how would you retrieve it. out of this line of the code ".rand(0,54)+2"

QUOTE
readfile("http://www.saint-michael.trap17.com/images/sig1-".rand(0,54)+2.".jpg");


Go to the top of the page
 
+Quote Post
stusrud
post Jul 25 2005, 04:31 AM
Post #16


Newbie
*

Group: Members
Posts: 9
Joined: 22-July 05
Member No.: 9,747



i don't think so, but i am not 100% sure.

Notice from BuffaloHELP:
You must explain or specify your idea when contributing. This is considered a spam and this is your only notice. Next will earn you adjustment in warning level.


This post has been edited by BuffaloHELP: Jul 25 2005, 05:50 AM
Go to the top of the page
 
+Quote Post
Dragonfly
post Jul 25 2005, 05:53 AM
Post #17


Privileged Member
*********

Group: Members
Posts: 702
Joined: 17-February 05
Member No.: 3,817



It looks really impressive. I'll give a try very soon. But can't the code be made a little shorter. Does it have to be this long? biggrin.gif Will not there be any ways to shortern the code? smile.gif

I'll give a try and inform you soon.

Thanks for sharing this cool sig.
Go to the top of the page
 
+Quote Post
Saint_Michael
post Jul 25 2005, 06:11 AM
Post #18


$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************

Group: [HOSTED]
Posts: 6,560
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
T17 GFX Crew



well if thier is another way to shorten up the coding to retrieve the images then that would be good, but i think its going to be pretty big, if you look what i did i have over 50+ images, but the best parts its not really taking that much space in the long run since all your doing is adding 2 lines of coding.
Go to the top of the page
 
+Quote Post
badinfluence
post Jul 25 2005, 07:40 AM
Post