By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,949 Members | 1,824 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,949 IT Pros & Developers. It's quick & easy.

How to make the randomly generated text as an image

Nert
P: 64
hi everyone,

Could anyone please teach me how to make the randomly generated text as an image? same as the image we have seen when we were signing up in this forum (www.thescripts.com). this is my code when i generate the random text.

[PHP]function random_password(){
$rand_pword = mt_rand(0,9999999);
$pword = substr(md5($rand_pword), 0, 5);
return $pword;
}[/PHP]

thanks..,


--nert (^_^)
Feb 21 '07 #1
Share this Question
Share on Google+
3 Replies


Motoma
Expert 2.5K+
P: 3,235
Take a look at the GD library. It can be used to draw images, write text onto images, and paste images together. I think this will provide you will all of the tools you need to accomplish this task.
Feb 21 '07 #2

Nert
P: 64
Take a look at the GD library. It can be used to draw images, write text onto images, and paste images together. I think this will provide you will all of the tools you need to accomplish this task.
Yah, thanks i made it now with the help of GD library.


--nert (^_^)
Feb 27 '07 #3

Motoma
Expert 2.5K+
P: 3,235
Yah, thanks i made it now with the help of GD library.


--nert (^_^)
Yay!
If it's not too much code (and of course, you don't mind), you could post it here for mad props!
:D
Feb 27 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.