GD or GD2 for Captchas

I am using Mac OS X Server, version 10.3.9 and want to enable captchas to login wiewers that want to leave comments, at my High School's website. I am using Expressionist weblog software which requires GD or GD2 for captchas.
Is there an easy solution for installing this for a nonsystem savy geek? I just don't want to break something that is working well.
Thank you for your help.
Jim Forsman

If your weblog software is compatible with a PHP 5, you could install the Entropy PHP 5 which includes support GD. This is a very simple installer. Just make sure your weblog software works with it.
http://www.entropy.ch/software/macosx/php/

Similar Messages

  • Any alternative options for Captchas?

    Hi
    Has anyone toyed around with captchas that look better. I can never get the box to the right of the graphics, so it always looks unfinished and unkept.
    Solutions?

    Hello Joel Media Group,
    You can change the color of the captcha to match your design better using the available parameters:
    {module_captchav2,[background color],[text color],[width in pixels]}
    To get the input box on the right of the image you could float the image div.captchaimg and the input#CaptchaV2 left:
    input#CaptchaV2{
        width: 160px;
        float: right;
        margin: 5px 0 0;
    div.captchaimg{
        float: left;
        width: 170px;
    Hope this helps,
    Chad Smith | http://bcgurus.com/Business-Catalyst-Templates for only $7

  • More secure forms and CAPTCHA for non-BC sites?

    Spam is ramping up...
    Clients are unhappy.
    When can we expect this issue to be addressed?
    Loving Muse and Edge :)
    Thanks!

    The short answers are:
    There are no forms enhancements in the Q2 release. The Q2 release is currently in late Beta. Subscribers who can accept the terms of the Non-disclosure Agreement are invited to participate in the Beta program by going to museprerelease.com.
    Addressing the need for CAPTCHA and/or similar technology for sites hosted on non-Adobe hosting is a high priority for the Q3 release of Muse.
    We're not ignoring your pleas. The Q2 release marks the first release of work that started nearly 2 years ago. Completing the changes that are part of the Q2 release has required long hours and the full attention of the entire development team. We simply have not had the bandwidth to ponder anything else. We all look forward to that changing once the Q2 version of Muse is released.
    Options for limiting or eliminating spam prior to the Q3 release of Muse include:
    1) Verify your hosting includes a compatible version of SQL.
    This will not elminate spam, but it does throttle the number of submissions a spammer can submit via your form. For your site go to http://<yoursiteurl.com>/scripts/form_check.php This URL will load a page that will report the status of the form processing on your site. Confirm there's a green checkmark next to SQL Configuration.
    2) Use a third party forms service.
    JotForms, WuFoo and Adobe Forms Central all provide very powerful services for creating and managing forms that require little or no knowledge of HTML coding. The forms created using one of these services can be pasted as an HTML object on a page in Muse.
    3) Use a third party form processing library.
    This solution requires some knowledge of coding. Products such as CoffeeCup software's forms solution can be used with Muse.
    4) Host the site, or at least the form page, on Adobe Business Catalyst.

  • Captcha Module in Contact Form

    Is there a technical reason that the Captcha Module only works with Business Catalyst or is it an Adobe marketing decision to limit its use to BC, as it did the Contact Form itself until the current version?
    I have a site developed in Muse running on a client's Mac OSX 10.8 Server with a contact form in it that is generating some robot-created  spam messages.

    The decision to intially release Muse Forms as a BC only feature, and the decision to only support CAPTCHA on BC were both because of technical issues.
    BC already had Form processing code, so Muse took advantage of that to deliver Forms. BC forms already had support for CAPTCHAs, so we added that to Muse as well.
    Customers requested forms that worked on other web hosts, so the Muse team built a form processing solution using PHP which works on most web hosts. It's additional work to make CAPTCHAs work on other web hosts, and would be more difficult than building simple form processing, so Muse forms hosted not on BC don't have CAPTCHA support yet.
    Muse forms hosted not on BC do attempt to do some throttling of form submissions based on the IP address of the submitter to attempt to limit spam submissions somewhat.

  • Captcha Image Not Showing

    Hi, I am generating the Flash forms formypages, One thing i
    came across is that how do i mange touse the captcha image inside
    the cfform flashform, It shows no eror but dos not display the
    image., can anybody had done xperimenting this thing.
    the code is like this:
    <cfform action="" method="post"
    enctype="application/x-www-form-urlencoded" name="form1"
    format="flash" width="400" skin="haloOrange" id="form1"
    height="450" style="background-color:##FFFFCC; font-family:Verdana,
    Arial, Helvetica, sans-serif; font-size:10px; table-layout:auto;
    vertical-align:middle;">
    <cfformgroup type="page" label="Add New Link">
    <cfinput type="text" name="textfield" required="yes"
    message="URL Value Required" validate="url"
    validateat="onsubmit,onserver" label="URL of Website:" size="20"
    tooltip="URL Valid Value Like
    http://www.yourdoamin.com"
    tabindex="1">
    <cfinput type="text" name="textfield1" required="yes"
    message="Title of URL" validate="noblanks"
    validateat="onsubmit,onserver" label="Title of URL:" size="20"
    tooltip="Name of the URL" tabindex="2">
    <cftextarea required="yes" name="textfield2"
    label="Description:" validate="noblanks"
    validateat="OnSubmit,OnServer" message="Description Required"
    tooltip="Description of the Website Required" tabindex="3"
    cols="25" rows="4" wrap="virtual"> </cftextarea>
    Image Verification: <cfinclude template="captcha.cfm">
    <cfoutput> <img src="#easyCaptcha.IMAGE#" border="0"
    height="100" width="100"/> </cfoutput> <cfinput
    name="secret" type="text" label="Veriication Code:" required="yes"
    size="10" message="Image Verification failed" />
    <cfinput type="submit" name="submit" value="Add the Link"
    tabindex="4" validateat="onSubmit"
    validate="submitonce">
    </cfformgroup>
    </cfform>
    </body>

    I'd suggest moving the include for captcha.cfm above the
    <cfform tag
    Then try this for including the captcha image in the form.
    <cfformitem type="html" height="100"
    width="100"><p><img
    src="#easyCaptcha.Image#"/></p></cfformitem>

  • Captcha has suddenly stopped working

    Just recently (over the past week or so) ADDT captcha has stopped working on all sites, on one server.
    When the page is loaded, the captcha image is created on the server. I have verified the creation, and the image file looks fine.
    The page cannot seem to "show" the image. It shows up as a broken image - however, when I right click on the broken image, the path to the image that was just created appears to be correct.
    Obviously, because nobody can see the image - they don't know what to enter in the box.
    This is occuring on an IIS6 server running PHP 5.2.12.
    PHP has not bee updated or changed recently (ie; config files have not changed) nor has IIS6 gone through any known changes. I cannot tell if this problem occurred at a similar time as the latest Windows 2003 patch Tuesday - but I do not believe so. These were working for at least a week after those latest updates.
    Has anybody else encountered a problem with Captcha recently? Any suggestions?

    If anyone else encounters this problem (I suspect it's a Windows/IIS change) this is how I corrected it.
    1: Open "includes/common/lib/captcha/KT_Captcha.config.php" (make a backup of this file before you change it).
    2: In line 2 change this "/../../_temp/.captcha/" to this "/../../temp/captcha/"
    3: In line 3 change this "includes/common/_temp/.captcha/" to this "includes/common/temp/captcha/"
    Effectively what I have done is created a new directory structure for Captcha. Intead of a folder called "_temp" it now uses "temp". Also, instead of a folder called ".captcha" it uses "captcha".
    I figure the "dot" in front of captcha was likely the issue, but still changed them both. I'm not sure why - but these changes made it start working again.

  • Youtube keeps requiring CAPTCHA's

    I suddenly started to get CAPCHA's when clicking on the Youtube icon or going to Youtube through the browser. Pulled the battery, deleted the Youtube app, deleted the google app, and still getting hit up for CAPTCHA's when going to Youtube via the browser.
    Any suggestions on how to stop this CAPTCHA business?

    Doc:
    Yes, that worked. Using another browser (Opera) let's me get into Youtube without those annoying and impossible to read CAPTCHA's.
    Just a guess here, but it appears that my Blackberry browser is corrupted and the way to solve this is to delete/re-install the Blackberry browser. I noticed however, that the PC Blackberry software has the browser application greyed out so it won't allow its deletion.
    I did a little research and I found something about deleting/re-installing the "service book". I did not do that yet. Nor have I done a factory reset on the phone. Any suggestions how to proceed from here? By the way, I have Blackberry OS V6.0. Much obliged on the Opera suggestion.
    T.

  • PHP, GD2 and Joomla

    Hi Everyone,
    I have previously asked this on the OS X 10.3 forum, however was advised to post here instead. Really hoping that someone will be able to help me out, I'm somewhat new to unix.
    Currently, I have a Joomla website set up and running on a 10.3.9 server using the built in web service and PHP 4. One of the Joomla components requires GD2 or ImageMagick to work correctly. At the moment I have googled both, but found it difficult to decide A, which is the better to install, and B, how to actually install it!
    I am new when it comes to meddling with the system, and I don't want to break the current site that I have at the moment.
    Apparently FINK may be able to help me? But i don't even know what that is. What I want to be able to do is allow my current installation of PHP to use GD2 for image manipulation for a Joomla component.
    I can run the Joomla and the component that relies on GD2 on MAMP, however not sure if this is appropriate for a production environment.
    Any advice anyone can give would be fantastic! It doesn't seem too many people have had this issue.
    Thanks,
    Andrew.

    Not sure about the feature comparison between GD2 and ImageMagick. I'm more familiar with ImageMagick myself.
    If you want to be able to install the latest versions and adjust the configuration, then build from source. If you want it easier with less tweak control then use a package manager like fink or mac ports for a quick install. Package managers also make it trivially easy to update or uninstall. Personally, I prefer going from source, only because I'm sometimes forced to update due to an incompatibility with something new, and either I need to configure something in the build, or the available pre-built packages are behind by a few versions...
    http://www.macports.org/
    http://www.finkproject.org/
    Here's a good recipe for building ImageMagick on Mac:
    http://hivelogic.com/?s=imagemagick&x=0&y=0
    You may want to follow the URLs in the recipe to get the latest version of ImageMagick though. The only step you don't need is the last one "gem install rmagick" which is just for ruby.

  • Captcha verification after refresh

    Hi..guys! I have implemented captcha image verification plus a refresh
    button to refresh the image instead of entire page.The image text for
    captcha is retrieved from session.However,after I refresh it,the
    session value still remain as the previous one,means that even correct
    image code entered but still verified it as incorrect thing.Thanks for
    you guys pleasure help.<img class="emoticon" src="images/emoticons/blush.gif" border="0" alt="" />
    I am using Ajax to retrieve the image code
    function doCaptcha() {
        url = 'CaptchaInfo.do?dummy=' + new Date().getTime();
            if (window.XMLHttpRequest) { // Non-IE browsers     
      req = new XMLHttpRequest();       
    req.onreadystatechange = returnImageCode;   
        try {            req.open("GET", url, false);  
         } catch (e) {         
      alert("Problem Communicating with Server\n"+e);        }   
        req.send(null);    }
    else if (window.ActiveXObject) { // IE     
      req = new ActiveXObject("Microsoft.XMLHTTP");  
         if (req) {            req.onreadystatechange = returnImageCode;
                req.open("GET", url, false);    
           req.send();        }    }} 
    function returnImageCode() {  
      if (req.readyState == 4) { // Complete 
          if (req.status == 200) { // OK response          
    code = req.responseText;        }
    else {            alert("Problem: " + req.statusText);    
       return "";
    }This is reload function to refresh image code
    function doImageReload() {
        var browser=navigator.appName;   
         if(browser == "Microsoft Internet Explorer") { // browser detection   
        document.captcha.location.reload();
        doCaptcha();                    }
    else {        
    var f = document.getElementById('captcha');    
        f.src = f.src;  
          doCaptcha(); 
    }This is the session statement to retrieve image code in Struts Action file
    String code =(String)request.getSession().getAttribute(nl.captcha.servlet.Constants.SIMPLE_CAPCHA_SESSION_KEY);Edited by: inamoto on Apr 2, 2008 11:30 PM

    Problem resolved.I am using setTimeOut() to force doCaptcha() to wait certain amount of time before it returned the image code.
    setTimeout("doCaptcha()", 200);
    setTimeout("checkImage()", 900);
    function checkImage() {
         var imageValue = document.updateForm.imageCode.value;
            if(code != "" && imageValue != "") {
             if(code != imageValue) {
                   alert("<fmt:message key='alert.account.imagecodeincorrect' bundle='${front}' />");
                 document.updateForm.imageCode.focus();
                 return false;
              } else {
                   document.updateForm.submit();
         return true;
    }

  • ADDT Captcha

    I used to think this was manna from heaven when I discovered it, until I installed it and started getting requests from ALL of my clients where I had used it, to remove it.
    It turns out that for some reason it is too unreliable. They send me emails from their customers explaining how they have tried and tried (one claimed up to 20 times!) to submit a form only to be forced to retry because the security code they entered did not match the server generated code. This of course can result in lost business to my clients.
    So my feature request is for an alternative stratgy for Captcha - I have been forced to remove it from all client's forms where I had hoped it would help limit SPAM - turns out that my clients would rather be hit by SPAM than have their clients frustrated by a "feature" (thats an old term for a BUG!) that did not work as advertised.
    Yours in anticipation.....

    Hi Wollombi,
    So my feature request is for an alternative stratgy for Captcha
    there´s one you can easily realize with ADDT as well :: the "honeypot" approach, means to...
    1. ask a question like "what´s the sum of 10 and 36 ?"
    2. provide a text input field for having users enter the sum
    3. make sure that ADDT´s form field validation checks for 46
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Form Validation - Error Trapping Not Working.

    Hi,
    I'm a Coldfusion beginner desperately trying to get along with some database work for my site and have come across an annoying error that I just can't solve! I'm sure I'm missing something really basic - I just can't for the life of me figure out what it is!
    Basically, I have a form for users to sign-up. I have introduced several cfif statements and a basic CAPTCHA system to trap errors. If any errors are submitted then they should be displayed in a cfwindow. This process works fine until I specify the form action - after which it is completely ignored and the form contents are written to the database without any validation taking place. Even without specifying the form action the errors won't show in Internet Explorer.
    I really would appreciate any help - it's driving me crazy!
    Thanks in advance,
    Tom.
    Here is the code:
    <cfinclude template="CFIDE/headertemplate.cfm">
    <!-- RANDOM NUMBER GENERATOR  FOR CAPTCHA -->
    <cffunction name="makerandom" returnType="string" output="false">
    <cfset var chars = "23456789ABCDEFGHJKMNPQRSTW">
    <cfset var length = randRange(4,6)>
    <cfset var result = "">
    <cfset var i = "">
    <cfset var char = "">
    <cfscript>
         for(i=1; i <= length; i++) {
              char = mid(chars, randRange(1, len(chars)),1);
              result&=char;
    </cfscript>
    <cfreturn result>
    </cffunction>
    <!-- ERROR TRAPPING -->
      <cfset showForm = true>
      <cfparam name="form.email" default="">
      <cfparam name="form.artistname" default="">
      <cfparam name="form.city" default="">
      <cfparam name="form.postcode" default="">
      <cfparam name="form.pass" default="">
      <cfparam name="form.captcha" default="">
      <cfparam name="form.captchahash" default="">
      <cfparam name="form.terms" default="">
    <cfif isDefined("form.send")>
          <cfset errors = "">
    <cfif len (form.email) LT '4'>
    <cfset errors = errors & "You must include a valid e-mail address.<br />">
    </cfif>
    <cfif find('.',form.email) is '0'>
    <cfset errors = errors & "Your E-mail features no . symbol.<br />">
    </cfif>
    <cfif find('@',form.email) is '0'>
    <cfset errors = errors & "Your E-mail features no @ symbol.<br />">
    </cfif>
    <cfif not len(trim(form.artistname))>
    <cfset errors = errors & "You must include your name.<br />">
    </cfif>
    <cfif not len(trim(form.city))>
    <cfset errors = errors & "You must include your city.<br />">
    </cfif>
    <cfif not len(trim(form.postcode))>
    <cfset errors = errors & "You must include your postcode.<br />">
    </cfif>
    <cfif not len(trim(form.pass))>
    <cfset errors = errors & "You must specify a password.<br />">
    </cfif>
    <cfif len(form.pass) LT '6'>
    <cfset errors = errors & "Password must be between 6 and 10 characters.<br />">
    </cfif>
    <cfif hash(ucase(form.captcha)) neq form.captchahash>
    <cfset errors = errors & "You did not enter the correct Captcha text.<br />">
    </cfif>
    <cfif not len(trim(form.terms))>
    <cfset errors = errors & "You must agree to our Terms and Conditions.<br />">
    </cfif>
    <cfif errors is "">
    <cfset showForm = false>
    </cfif>
    </cfif>
    <cfif showForm>
    <cfset captcha = makerandom()>
    <cfset captchahash = hash(captcha)>
    <cfoutput>
    <h1>Artist Sign-Up</h1>
    <p>Your details are required for sign-up. Mandatory fields are indicated with a *.</p><br/><br/>
    <cfif isDefined("errors")>
    <cfwindow name="formerrors"
    title="Form Errors"
    width="450"
    height="250"
    modal="true"
    initshow="true"
    center="true"
    closable="true"
    minheight="200"
    minwidth="200">
    <center><b>Please correct the following errors and re-submit the form:</b><br /><br/>#errors#
    <br/><a href="javascript:ColdFusion.Window.hide('formerrors');">Close Window</a>
    </center>
    <br/></cfwindow>
    </cfif>
    <!-- FORM CONTENTS -->
    <cfform action="artist_insert.cfm" method="post">
    <table class="signup">
    <tr>
    <td class="noborder" width="200">
      <label for="email">E-Mail Address*:</label>
    </td>
    <td class="noborder" width="156">
    <input type="text" name="email" class="textbox" value="<cfoutput><cfif IsDefined("URL.email")>#URL.email#<cfelse></cfif></cfoutput>"/>
    </td>
    <td class="noborder">
    <cftooltip autoDismissDelay="9999" tooltip="This needs to be a valid e-mail so that<br/> promoters can get in contact with you. <br/>If several people will be using this<br/> account then try and make it a shared<br/> address."><img src="pics/i.jpg" alt="info" border="1" /></cftooltip>
    </td>
    </tr>
    <tr>
    <td class="noborder" width="200">
      Your Password* (6 to 10 chars.):
    </td>
    <td class="noborder">
    <input type="password" class="textbox" name="pass" maxlength="10"/>
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder" >
    Artist/Band Name*:
    </td>
    <td class="noborder">
    <input type="text" class="textbox" name="artistname" />
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    City*:
    </td>
    <td class="noborder">
    <input type="text" class="textbox" name="city" />
    </td>
    <td class="noborder">
    <cftooltip autoDismissDelay="9999" tooltip="Entering your locational details enables Gig<br/>Digger to find the events and promoters<br/>in your area. Try specifying a well known<br/>city nearby for the best results."><img src="pics/i.jpg" alt="info" border="1" /></cftooltip>
    </td>
    </tr>
    <tr>
    <td class="noborder">
    Postcode*:
    </td>
    <td class="noborder">
    <input type="text" class="textbox" name="postcode" maxlength="8"/>
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    Your Contact Number:
    </td>
    <td class="noborder">
    <input type="text" class="textbox" name="contact" maxlength="14"/>
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <tr>
    <td class="noborder" valign="top" width="200">Please enter the CAPTCHA text in the box below*: </td>
    <td class="noborder" align="left">
    <center><cfimage action="captcha" width="156" height="50" text="#captcha#" border="1">
    <input type="hidden" name="captchaHash" value="#captchaHash#"></center>
    </td>
    <td class="noborder" valign="top">
    <cftooltip autoDismissDelay="9999" tooltip="This is here to ensure that<br/>you're human. It stops abuse <br/>of the site and makes it a safer <br/>place for us all."><img src="pics/i.jpg" alt="info" border="1" /></cftooltip>
    </td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    <td class="noborder" align="right"><font size="-2"><b><a href="javascript:location.reload(false)">Refresh Page</a></b></font>
    </td>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder"></td>
    <td class="noborder"><input type="text" name="captcha" class="textbox"></td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder" width="170">Please check this box to confirm that you agree<br/> to our <b><a href="termsandconditions.cfm">Terms and Conditions</a></b>*.
    </td>
    <td class="noborder">
    <input type="checkbox" class="textbox" name="terms" /></td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    </tr>
    <tr>
    <td class="noborder">
    </td>
    <td class="noborder" align="center">
    <cfinput type="image" src="pics/submit.png" name="send" value="Submit" validate="submitonce" border="1">
    </td>
    </tr>
    </table>
    </cfform><br/>
    </cfoutput>
    <cfelse>
    <cfoutput>
    Thank you for submitting your details, #form.name#. You may now log in with your e-mail and password.
    </cfoutput>
    </cfif>
    </td>
    </tr>
    </table>
    <!-- FOOTER START -->
    </body>
    </html>
    ARTIST INSERT PAGE - artist_insert.cfm
    <cfquery datasource="071907cs07to">
    INSERT INTO Artist(    Nsudate,
                        Nemail,
                        Npass,
                        Nname,
                        Ncity,
                        Npostcode,
                        Ncnumber
    VALUES(    ( #Now()# ),
            '#Trim(form.email)#',
            '#Trim(form.pass)#',
            '#Trim(form.artistname)#',
            '#Trim(form.city)#',
            '#Trim(form.postcode)#',
            '#Trim(form.contact)#'
    </cfquery>

    In addition to BreakawayPaul's answer.
    You are making it very difficult to troubleshoot your if/else logic because your code includes all the display stuff.  Since you're a self proclaimed beginner, you might want to try another approach.
    Save your old page and start a new one from scratch.  Solve all your logic problems first.  Display what you need to see with the cfdump tag.
    Here are some hints to make the whole thing easier.
    1.  In your cfform, use the validate and required attributes to catch errors earlier.
    2. You don't have to cfparam every form field.  The form has either been submitted to it hasn't.  If it has, all the fields will be there with the possible exception of checkboxes or radio button, if nothing was selected.

  • Can I use Boolean parameters and 'is empty ' in smart groups & mail rules?

    How do you do the following smartgroup in Mail? State is MA or NH or ME and Email is not 'empty'? I also would like to make the following rule in Mail: If FROM is 'empty' and Subject is 'empty' then move to Trash. In other words is it possible to use invisible charakters <blank> or <empty> and boolean parameters in search fields. Any hits will be appreciated. ---Stefan

    I have the same question, plus a couple more. Most of the spam that I get follows one of five simple patterns:
    1. It contains one or more empty fields (to, from, subject, or message body),
    2. It sometimes lacks a "from" or "subject" field entirely.
    3. Mail recipients are sequential (e.g. [email protected], [email protected], [email protected]).
    4. Total message size is 0.7 KB or less. (Due to empty fields.)
    5. It contains a gif or jpeg touting whatever product the spammer is flogging.
    It seems like it would be trivial to incorporate filter rules to take care of empty or non-existent fields (categories 1 and 2). But I can't see a way to do that in Mail currently. Hopefully Apple is working on this? Or maybe there's a third-party add-on that can address this?
    Also it would be easy to take care of #3 with the use of simple grep expressions. But I don't think Mail can do this yet. (Again, any third-party solutions out there?)
    For #4, obviously a rule that could take into account message size would help deal with those emails.
    And for #5, it's more problematic, but since there are programs out there that can read graphics, hence the need for captcha "encryption" on web sites, why not use such an app as a Mail extension? It would be great if it could interoperate with Mail's rules, so you could set up something like "if message contains a jpeg or gif and if the image contains 'penile enlargement' then delete/put in junk folder."
    Currently I put all messages with attachments (that haven't already been approved by my whitelist) in a "limbo" folder for later review. But I have to use a minor kluge to do this. Ideally I'd just say "if message has an attachment" or "if message attachment is not empty," but those options aren't available so I have to say "if name of attachment contains '.'" Since pretty much all files have a "." in them, it seems to work fine, but strictly speaking it's not as elegant as I'd like it to be.
    iMac G5 iSight, Powerbook Ti   Mac OS X (10.4.5)  
    PowerBook G4 (Ti)   Mac OS X (10.4.1)  
    iMac G5 iSight, Powerbook Ti   Mac OS X (10.4.5)  

  • JCaptcha - refresh image

    Hi,
    I'm trying to build a registration page with captcha image, and enables user to change the captcha image by clicking a link.
    I tried the open-source JCaptcha project. (5 minutes application integration tutorial http://luminal.gotdns.com/confluence/display/general/5+minutes+application+integration+tutorial)
    It worked fine when first load the page. But when I click reload, exception happends:
    If I try to reload after ,say 5 mins, the page works again.
    java.lang.ClassCastException: java.lang.String
         net.sf.ehcache.Element.equals(Element.java:165)
         java.util.HashMap.eq(Unknown Source)
         java.util.HashMap.removeEntryForKey(Unknown Source)
         java.util.HashMap.remove(Unknown Source)
         net.sf.ehcache.store.MemoryStore.remove(MemoryStore.java:219)
         net.sf.ehcache.Cache.remove(Cache.java:716)
         net.sf.ehcache.Cache.remove(Cache.java:683)
         com.octo.captcha.service.EhcacheManageableCaptchaService.generateAndStoreCaptcha(EhcacheManageableCaptchaService.java:826)
         com.octo.captcha.service.AbstractCaptchaService.getChallengeForID(AbstractCaptchaService.java:538)
         com.octo.captcha.service.image.EhcacheManageableImageCaptchaService.getImageChallengeForID(EhcacheManageableImageCaptchaService.java:505)
         ImageCaptchaServlet.doGet(ImageCaptchaServlet.java:36)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    I read the example code, found that it takes session id as key to recognize the request. So, it seems to be: when reload attempts, the same session id is sent to the service to acquire an image, but the captcha service doesn't support one session id with different images.
    Can anybody guide me to make it work? any other resource can help to solve the problem?

    I use current time (System.currentTimeMillis()) instead of session id as a key for captcha image generation, and a new captcha image is generated everytime I relaod the page. :)
    However, I don't know how to pass current time from servlet to the request page, so that the request page can laterly send the key back to servlet for captcha validation.
    My jsp pages is like:
    <form name="LoginPage" action="/jcaptcha/ImageCaptchaServlet" method="get">
    <img src="jcaptcha">
    <input type='text' name='j_captcha_response' value=''>ImageCaptchaServlet ( copied from http://luminal.gotdns.com/confluence/display/general/5+minutes+application+integration+tutorial)
            //the same id must be used to validate the response, the session id is a good candidate!
    //        String captchaId = httpServletRequest.getSession().getId();
              String captchaId = Long.toString(System.currentTimeMillis());     
            // call the ImageCaptchaService getChallenge method
                BufferedImage challenge =                     CaptchaServiceSingleton.getInstance().getImageChallengeForID(captchaId,httpServletRequest.getLocale());
            captchaChallengeAsJpeg = jpegOutputStream.toByteArray();
            // flush it in the response
            httpServletResponse.setHeader("Cache-Control", "no-store");
            httpServletResponse.setHeader("Pragma", "no-cache");
            httpServletResponse.setDateHeader("Expires", 0);
            httpServletResponse.setContentType("image/jpeg");
            ServletOutputStream responseOutputStream =
                    httpServletResponse.getOutputStream();
           responseOutputStream.write(captchaChallengeAsJpeg);
           responseOutputStream.flush();
            responseOutputStream.close();

  • Needed Information on Visual Verification Image

    Hi all,
    I am developing a email application.
    In that visual verification image is needed to make user
    registration conform.
    where can i get this Randomized Visual verification Images.

           _g*bmagq,                                              gE            
         p#!     ~0M&g                                           *B&            
        NM         "M2                                            0A            
       N&~          ^                                            w&2            
      O0~                  _p+#ag,       _p+#ag,       ,,rqyg+-  /B&    ,;+#pg  
      M0                  a&    ^#bg    a&    ^#bg   aX   0N0r   \#6   +^   ^N& 
    \#B                 /8      "00   /8      "00   0x    #NW   C06  :N    _*##
    K#0_                0N       KM&  0N       KM& GBf     M0   406  *#wx}"    
    ^QQ&        ,%w pp  N0        #A  N0        #A 00&     QM    0p  RM        
      #0Bt         ~#N6 ~#&_      iQ& ~#&_      iQ&  #00, _0~~   _NZ  0M&       
       #NQp         @08  Q0Q      g0   Q0Q      g0    "08y#$     ,0&  "#Ng      
        *#M&a,      QNh   4QDp_ _N0^    4QDp_ _N0^       j0W,    #0ga  ^B0&qggr 
         ~"0##N#MMM"~?      3^~"          3^~"       ,r*+0M#0g    5"     ~EMF   
                                                    00     ^N#h                 
                                                   O0_       ##                 
                                                   NMg       K9                 
                                                   '#0Qp_,_s&"                  
                                                     ~G^~'for "Captcha", or perhaps take a look at http://simplecaptcha.sourceforge.net/
    ~D

  • Help with php/cookies login error message

    Hi
    I'm working in DreamWeaver CS4, On a Mac 10.04 OSX system. I am using php and a cookies if (isset) function
    Im  trying to create and error message for users who try to login to the site. but can't because there is no connection to the database as of yet.
    I have a connect srcript and a login script as well as the login and registration page.
         when the user tries to login in I get a syntax error mesage instead of getting the phrase," A problem connecting to the data base. Please try again later."
    How can I resolve this issue, Thanks your help it is greatly appreciated. To view the php code/connect script used in the login registration follow this link the script will available there. http://http://www.camtamkalaboration.com/products.php

    jarmelo wrote:
    how would I go about upgrading from tiger to  leopard?
    Buy Leopard, insert disk, follow instructions.
    You can instal php (which is built into Leopard) by renaming a file and uncommenting a line then enabling web sharing in System Preferences but I use entropy because it has the GD enabled for CAPTCHA and other features. There's a 10.4 version on their website but it mentions it's an older, unsupported and probably insecure version. You should use entropy Leopard version 5.2.9-7 for Leopard/ADDT development.
    After you get php installed you need to install MySQL which is easy to find through searching and straight-forward to instal. Then instal phpMyAdmin and you'll be good to go!
    As mentioned earlier I can walk you through the steps more thoroughly if you decide to upgrade to Leopard. There's some other steps involved: You need to configure virtual hosts so that it points to your Sites folder on your Mac and each folder in Sites folder are for each site you have so that entering site1 goes to ~/Sites/site1 on local testing server and entering site2 goes to ~/Sites/site2 in local testing server, etc. very, very easy to setup. Just edit hidden hosts file in etc folder and username.config file in apache2 hidden folder.
    There's other tutorials out there that show how to do it but most don't have all the info. I'm working on a step-by-step tutorial on my website but it's not finished yet. Maybe it'll be ready by the time you decide to upgrade to Leopard.

Maybe you are looking for