
12-26-2001, 09:01 PM
|
 |
Administrator
|
|
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
|
|
I'm moving my Personal PIC to my sig
YABB won't let me use my Random img script for my personal pic. They should redo that to judge if it's an image by the headers of the location instead of the last 4 letters being eather .jpg or .gif (I'm guessing that's how it works)
__________________
PHP...It kicks ASP
|

12-28-2001, 05:23 PM
|
|
|
Re: I'm moving my Personal PIC to my sig
I did a couple of page refreshes and I have to say that those are some pretty interesting pictures you have there...hahaha!
|

12-28-2001, 08:42 PM
|
 |
Administrator
|
|
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
|
|
Re: I'm moving my Personal PIC to my sig
yeah, 3 of them are from a website telling you how to NOT mod you case
The one with the plyers on top of it is my PC
__________________
PHP...It kicks ASP
|

12-28-2001, 09:25 PM
|
|
Administrator
|
|
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
|
|
Re: I'm moving my Personal PIC to my sig
Those are awsome pics!
We want more!!!
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
|

12-29-2001, 01:55 AM
|
 |
Administrator
|
|
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
|
|
Re: I'm moving my Personal PIC to my sig
eh. we'll see
Edit: Done and done ;D
__________________
PHP...It kicks ASP
|

12-29-2001, 02:42 AM
|
 |
Administrator
|
|
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
|
|
Re: I'm moving my Personal PIC to my sig
oh yeah. here's the source, for those of you who want it
--------------------------------------------------
Code:
<?php
header("content-type: image/jpg"); //netsmog forum dosent like that first ", the & quot is a "
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
//RandomIMG
//]MX[Uranium-235
function loadimage($filename)
{
$file = fopen($filename, "rb");
fpassthru($file);
fclose($file);
}
$mdir = "images/$catagorey";
if(trim($catagorey) == "")
loadimage("images/error.jpg");
if(!$dir = @opendir($mdir))
loadimage("images/error.jpg");
while($file = readdir($dir))
{
if($file != ".." && $file != ".")
$imgs[] = $file;
}
closedir($dir);
mt_srand(time());
$num_img = count($imgs)-1;
//patched - mt_rand will not accept (0, 0)
if($num_img <= 0)
$rand = 0;
else
$rand = mt_rand(0, $num_img);
$images = $mdir . "/" . $imgs[$rand];
loadimage($images);
?>
__________________
PHP...It kicks ASP
|

12-29-2001, 10:48 AM
|
|
Administrator
|
|
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
|
|
Re: I'm moving my Personal PIC to my sig
Thanks for the code!
I am going to use this on another page that i have.
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
|

12-29-2001, 12:13 PM
|
 |
Administrator
|
|
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
|
|
Re: I'm moving my Personal PIC to my sig
ok. then here's the other info on it. in the Images directory thier has to be a error.jpg. You can probaly make your own
and in the images directory you have to have other directories. Like I have /images/netsmog
and in the image for my sig it has randimg.php?catagorey=netsmog
put all the images you want under that ?catagorey=x in directory images/x
__________________
PHP...It kicks ASP
|

12-29-2001, 03:09 PM
|
|
Administrator
|
|
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
|
|
Re: I'm moving my Personal PIC to my sig
Thanks for the explanations!
Hey do you have any php scripts that count how many users are on a web site?
Thanks
Keefe
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
|

12-29-2001, 03:52 PM
|
 |
Administrator
|
|
Join Date: Nov 2001
Location: Mansfield, TX
Posts: 2,469
|
|
Re: I'm moving my Personal PIC to my sig
no. that's one I could never figure out how to do. I know it can be done with asp/vb
__________________
PHP...It kicks ASP
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:11 AM.
Powered by vBulletin® Version 3.6.5 Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
|