Forum Moderators: coopster

Message Too Old, No Replies

PHP Problems with GD2.0 and Mail() function! :P

PHP GD and MYSQL

         

illuz1on

10:40 am on Sep 17, 2004 (gmt 0)



Hey all!

I need help on the following please:

Ok first of all I use GD2.0 to append an image to the bottom corner of another image - to kind of tag it... this dramatically decreaces the qiality for some reason! I was told it was because of anti aliasing? or something? If anyone could advise me on how to turn anti-aliasing on/off (whichever one it needs to be to improve quality) then please do! :)

Another thing
I have a MySQL db full of users... their usernames, there passwords, their emails. How can I make a form to email them a password out of the mysql db? kind of like a forgotten password feature... I want them to be able to type in a username OR email address, and it sends their password to them, on the email listed in the database!

Thanks guys,
would much appreciate your help

mincklerstraat

10:55 am on Sep 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



GD2: make sure you use imagecreatetruecolor() instead of imagecreate() to get proper palette

Antialiasing - check [be2.php.net...]

coopster

11:56 am on Sep 17, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, illuz1on.

As far as forgotten passwords go, I usually generate a new, random password and UPDATE the database with it just before I email it to them. This is because I use md5() [php.net] when I store it in the database table. If you sent this to your user in it's hashed state, it won't work when they try to logon. And no, you cannot get the *real* password back once it has been run through this function. Make sense?

DooinMyHeadIn

7:57 pm on Sep 18, 2004 (gmt 0)

10+ Year Member



With gd in IE version 5+ a bug exists with with the browser not correctly resolving image opacity. Check out the Microsoft site for the solution.