yhacks php sig / clock script

Permabanned
Joined
2 Nov 2006
Posts
187
chaps, i've posted in GD that i'm looking for the font used in 24 as the clock so I can use a similar sig to yhacks. how is this done as I dont want to create 1400 odd jpg files :(

any ideas?
 
a little, basically i'm looking to use the info I gained from this thread to do something similar to you

hope you dont mind - I have a server that I can run php code in
 
I don't mind at all.

But if you were going to get people from this forum to code the sig for you and then pass it off as your own then I'm not helping.
If you get some of code started then I'll help.
 
yhack said:
I don't mind at all.

But if you were going to get people from this forum to code the sig for you and then pass it off as your own then I'm not helping.
If you get some of code started then I'll help.

something like this?

Code:
<?php

$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
readfile($files[array_rand($files)]);

?>
;) :D

and put them in their own directory and change the _rand to something else?
 
Christ, you're funny. Where did you come up with this?
No, I changed my mind, I'm not going to help you at all.

Good luck, noob.
 
yhack said:
Christ, you're funny. Where did you come up with this?
No, I changed my mind, I'm not going to help you at all.

Good luck, noob.
I was being serious! :( I found the code in the sticky.
 
yhack said:
Exactly, make your own code to start the image.

What can you do with PHP?

Oh ok, then i'm limited, i'll admit. I just about understand its use within forum boards. Apart from that, I get scared. Any tutorials you could point me to?
 
ok, here is my code

Code:
<?php

$IMG_DIR_URL = "./digits/";


function txt2digits ($txt) {
	global 

$IMG_DIR_URL;

	$digits = preg_split("//", $txt);

	while 

(list($key, $val) = each($digits)) {
		if ($val != "")  {
	
		if ($val == ":") $val = "colon";			

$html_result .= "<IMG SRC=\"$IMG_DIR_URL$val.gif\">";
		}
	
}
	return $html_result;
}

$time = 

txt2digits(date("H:i:s"));

PHP
?>

<HTML>
<BODY BGCOLOR="black">
<BR><BR><BR>

<CENTER>


<?php echo $time ?>
</CENTER>

</BODY></HTML>

and this is what it looks like - here. I had to mix some HTML to get it looking half decent. Could somebody point me in the direction of setting it out in a signature style format with a black background as i'd like to loose the HTML as it probably wont work here

Thanks
 
Last edited:
Back
Top Bottom