Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
5 registered (Ruben, Stan, SteveS, tradge, Pilgrim), 46 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 12/20/03
Posts: 4423
Top Posters (30 Days)
Ruben 51
DennyP 24
Gizmo 23
Dunny 17
SteveS 14
AllenAyres 12
SD 10
dbremer 10
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 3 1 2 3 >
Topic Options
#182479 - 04/11/07 11:12 AM Captcha not working, IIS6, ImageMagick
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Ok, I searched this time, and got 8 pages of threads, mostly around why captcha was non compliant for blind people. \:\)

I sure as heck hope there is an option in the advanced search, next time I look, to ignore replies on the same thread.

ANYHOW...

Trying to get ImageMagick to throw me the CAPTCHA stuff.
All I get is the red X.

Paths are in as c:\ImageMagick\convert.exe and mogrify.exe.

Have done nothing to php yet, do I need to?
I see no sign of that, and there is nothing in the docs anywhere.

Ideas?
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#182482 - 04/11/07 11:25 AM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
First thing would be to make sure that it is ImageMagick6 that you have installed and not 5. You don't need to do any PHP changes for ImageMagick to work, but you do need to make sure that PHP has the permission to use the exec() function.

A quick way to test if it's setup properly, is to call it directly. When you're logged in as an admin, bring up this page:

ubbthreads.php?ubb=captcha&t=im&test=1
Top
#182486 - 04/11/07 12:28 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
AllenAyres Offline

Registered: 12/29/03
Posts: 1995
Loc: Texas
I believe you need to point to the imagemagick .exe file in your php.ini as well, eh?

ugh, it's been too long since I ran IIS - I need to set it up on my home computer \:\)
_________________________
- Allen
- ThreadsDev | PraiseCafe
Top
#182487 - 04/11/07 12:33 PM Re: Captcha not working, IIS6, ImageMagick [Re: AllenAyres]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
I don't think so Allen. The way we're doing it, we just call the convert.exe via exec() so we're actually executing the convert.exe, so php shouldn't need to know anything about it.
Top
#182493 - 04/11/07 01:29 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Ok, test run, and all I get is a blank screen, with a red X on an image.

Looked for any reference to exec() in the php.ini and can find none.

v6.3.3.6 is the file version of convert.exe.

I had it working before, for a photogallery online, and just installed the latest version, prior to installing threads. (trying to avoid problems, not create them)

\:\)
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182494 - 04/11/07 01:36 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Just did the quick check based on IM6's text files, and it converted and displayed a file for me...
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182496 - 04/11/07 01:48 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Hmm, one last check, and we might need a support ticket for this. Can you check and make sure that your cache directory is writeable. ImageMagick tries to write to this directory to temporarily store the image that it created.
Top
#182497 - 04/11/07 02:10 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Yup, and there's about 20 files in there right now. (various php files)

is there any other way to quickly script a php test of imagemagick?
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
#182498 - 04/11/07 03:01 PM Re: Captcha not working, IIS6, ImageMagick [Re: Andrew Bienhaus]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Something like this should work to test. If it runs into a problem it should output the error, however this doesn't appear to always be the case. This script works for me, but if I make the path bad it doesn't show any error on my windows test box for some reason.

 Code:
<?

$output = exec("C:/path/to/convert.exe -background lightblue -fill blue -pointsize 30 label:test C:/Path/to/a/writeable/directory/test.gif",$error);

if (sizeof($error) {
        echo "Error is " implode(' ',$error);
} // end if

?>


You'll want to change the paths above. Both to the convert.exe executable, and also to where it will output the test.gif file, it must be a writeable directory.
Top
#182501 - 04/11/07 05:24 PM Re: Captcha not working, IIS6, ImageMagick [Re: Rick]
Andrew Bienhaus Offline
member
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
Had to edit a bit to get it to run, but can't get past this syntax error... and I'm stuck.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\Inetpub\ca.dsm.org\forums\test.php on line 6



<?php

$output = exec("C:\imagemagick\convert.exe -background lightblue -fill blue -pointsize 30 label:test C:\inetpub\ca.dsm.org\forums\cache\test.gif",$error);

if (sizeof($error)) {
echo "Error is " implode(' ',$error);
} // end if

?>
_________________________
...usin' da classic UBB, since the beginning of time.
wink
Top
Page 1 of 3 1 2 3 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10489 Members
36 Forums
33841 Topics
181706 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image