ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Securing Web Forms with PEAR's Text_CAPTCHA
Subject:   code not working
Date:   2006-03-06 04:05:40
From:   a1u4z8
I get this error
Notice: Object to string conversion in ....
in the following line


fwrite($handle, $image_data);


and the content of image file is the word "Object"


I think it is due to method getCAPTCHAAsPNG return and object and fwrite needs a string


Any solution ?