Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
stephen2417
Worker
Worker



Joined: Jan 18, 2004
Posts: 244
Location: Bristolville, OH

PostPosted: Tue Jun 15, 2004 2:56 pm Reply with quote

Heres some code I found and modified and i cant seem to get the text color to change, I tried just about everthing. Still wont change, i wanted it black.
Code:
<?php

$number = rand(1,10);
if($number==1)$string2 = "all your base r belong 2 us";
if($number==2)$string2 = "somebody set up us the bomb";
if($number==3)$string2 = "Resistance is futile";
if($number==4)$string2 = "R0D3NTS are cute";
if($number==5)$string2 = "H4X0R in thE yur PC1?!";
if($number==6)$string2 = "Dude w3re's my c4r?";
if($number==7)$string2 = "s0m3on3 st0l3 my mega hurtz!!";
if($number==8)$string2 = "move zig for great justice";
if($number==9)$string2 = "Rodents make the world cool";
if($number==10)$string2 = "Life is a sexually transmitted disease.";

$im = imagecreatefrompng("signature.png");
$color = ImageColorAllocate($im, 0,0,0); 
ImageString($im, 3, 5, 19, $string2, $color);

header("Content-type: image/x-png");
Imagepng($im);
ImageDestroy ($im);
?>
 
View user's profile Send private message Visit poster's website
GanjaUK
Life Cycles Becoming CPU Cycles



Joined: Feb 14, 2004
Posts: 633
Location: England

PostPosted: Tue Jun 15, 2004 3:56 pm Reply with quote

0, 0, 0 is black. Colour is RGB format. RED, GREEN, BLUE. 0-255 for the amount of that colour.

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
stephen2417







PostPosted: Tue Jun 15, 2004 4:15 pm Reply with quote

Ya burwave is helping me right now on aim and its my png thats the problem.. so hes fixing it for me. Very Happy
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©