|
|
|
|
![]() ![]() |
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 ? |
|
|
|
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) 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? I am using absolute paths. The one you're talking about is relative paths. would it be ./sig.png/image.jpg ? 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! |
|
|
|
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 This post has been edited by Klass: Jul 24 2005, 12:18 AM |
|
|
|
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: 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.
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 |
|
|
|
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 ![]() |
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"); |
|
|
|
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.
This post has been edited by BuffaloHELP: Jul 25 2005, 05:50 AM |
|
|
|
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?
I'll give a try and inform you soon. Thanks for sharing this cool sig. |
|
|
|
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 ![]() |
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.
|
|
|
|
Jul 25 2005, 07:40 AM
|