need help with security image

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
djabadie
Posts: 2
Joined: Sat Feb 03, 2007 2:23 am

need help with security image

Post by djabadie »

Script URL:http://www.bartokprojects.com/tulips_on ... mboard.php
Version of script:1.3 from 18th November 2006
Hosting company:
URL of phpinfo.php:http://www.bartokprojects.com/tulips_on ... hpinfo.php
URL of session_test.php:http://www.bartokprojects.com/tulips_on ... n_test.php
What terms did you try when SEARCHING for a solution:this forum, Google

I just installed Mboard and I'm having trouble viewing the security image when creating or replying to posts. As a test, I set $settings['autosubmit'] to 2 and it worked fine; I was able to see the text number and make a post. When I set it back to 1 though, the image number would not display. I loaded gd_test.php and instead of returning 'works' it returned the URL of the file, http://www.bartokprojects.com/tulips_on ... d_test.php

I'm fairly new at PHP but I do know a little. However, I've never worked with the GD library, so I'm probably missing something there.

Thanks in advance for any help.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

What kind of gd_test.php file is this? It returns PHPINFO not the image! And on the bottom you see

Fatal error: Call to undefined function: imagejpeg() in /var/www/html/bartokprojects.com/tulips_on_troost/mboard/gd_test.php on line 26


So you are most likely having problems with GD library, ask your host to check if it is installed properly.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
djabadie
Posts: 2
Joined: Sat Feb 03, 2007 2:23 am

Post by djabadie »

Oops, sorry about that. I added a call to phpinfo to the gd_test file to check the GD library settings before I saw the other phpinfo.php file to download and I forgot to change it back. http://www.bartokprojects.com/tulips_on ... d_test.php is now the original gd_test.php file.

I'll look into the error message you mentioned and see if I can track down the problem. You also said I should see if the GD library is installed properly. Is there anything in specific I should be looking for?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Sorry, I can't help you with your PHP/GD setup, you will need to ask your host or check on any PHP forums for help if you are your own host.

From the PHP manual:
Note: JPEG support is only available if PHP was compiled against GD-1.8 or later.
From the PHPINFO file I see your PHP was compiled with a GD library, you probably just need JPG Support enabled. And that is something only your host can do.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Locked