DiviNe187 Posted September 14, 2010 Share Posted September 14, 2010 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 is happening? Thanks in advance! Kevin Quote Link to comment https://forums.phpfreaks.com/topic/213352-php-gd-problem/ Share on other sites More sharing options...
trq Posted September 14, 2010 Share Posted September 14, 2010 Could any1 shed me some light on what is happening? Not without seeing some relevant code. Quote Link to comment https://forums.phpfreaks.com/topic/213352-php-gd-problem/#findComment-1110885 Share on other sites More sharing options...
DiviNe187 Posted September 14, 2010 Author Share Posted September 14, 2010 Hi! Already found the solution thanks 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 Quote Link to comment https://forums.phpfreaks.com/topic/213352-php-gd-problem/#findComment-1111029 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.