Jump to content

PHP-GD Problem


DiviNe187

Recommended Posts

Hi there!

 

I have a question concerning a script i use to display images and random numbers for a human login check, much like the one on this forums.

I am using Ubuntu6.4 and running php5 on it with the php-gd package installed.

 

The login image shows like it should after a page refresh, like it always did.. but..

After a ubu reinstall the numbers seem to just stay the same, the image does change so it does look different but the numbers themselves keep comming back over and over again in the same order.

 

The weird thing here is that this code has never been altered, and it even works on windows icw wamp-php5+php-gd without any issues with  the same exact setup and using the same exact code.

 

Could any1 shed me some light on  :wtf: is happening?

 

Thanks in advance!

 

Kevin

Link to comment
Share on other sites

Hi!

 

Already found the solution thanks  ;D

 

For those who might stumble upon the same problem, if you try to capture any auto incr id at a page refresh and use a single id=$userid value it will fail to renew the numbers but not the image, change it into id=$GET_[userid] and it will work.

 

Kevin :rtfm:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.