 |
 |
 |
 |
Registered: 12/20/03
Posts: 4423
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
#182479 - 04/11/07 11:12 AM
Captcha not working, IIS6, ImageMagick
|
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.
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#182493 - 04/11/07 01:29 PM
Re: Captcha not working, IIS6, ImageMagick
[Re: Rick]
|
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.
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#182501 - 04/11/07 05:24 PM
Re: Captcha not working, IIS6, ImageMagick
[Re: Rick]
|
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.
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#182552 - 04/12/07 12:20 PM
Re: Captcha not working, IIS6, ImageMagick
[Re: Rick]
|
member
|
Registered: 04/10/07
Posts: 135
Loc: Binbrook, Ontario, Canada
|
|
Ok, PROBLEM FIXED. And, for the record, here's the solution. It would indeed appear that permissions are the problem. But, giving the IUSR account read & execute permissions on ImageMagick directory, didn't make any diff. You were on the right track though... found a Gallery system posting elsewhere that said in order for the exec function to work, you need to give read and exec to the cmd.exe located in the system32 directory. Did that, and it works. Removed read & exec from ImageMagick dir, and it still works. So, looks like cmd.exe is the culprit. Maybe when you guys write the docs for Captcha you can include this?  Thanks!
_________________________
...usin' da classic UBB, since the beginning of time.
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|