 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
mark

Joined: 07 Jan 2007 Posts: 1000
|
Posted: Sat Apr 19, 2008 6:42 pm Post subject: |
|
|
| Please post your solution here, e.g. the additionally needed function/method calls. It helps other people that search the internet and that find this thread. |
|
| Back to top |
|
 |
horseatingweeds
Joined: 15 Apr 2008 Posts: 10
|
Posted: Mon Apr 28, 2008 10:53 pm Post subject: |
|
|
Sorry Mark, I thought I had conveyed the solution in my last post by saying you were right about the blank line. Allow me to clear it up.
With the way Zend Framework and MVC code I'm using works, the index (bootstrap) file is used to create the image binary code. I had a line break at the top of the index page so it was adding this page to the image code and corrupting it. By removing this line I fixed the problem and it works correctly now.
boodito, this may be your problem as well. Look for any space above your <?php tag on the index.php page. Also be sure you have GD graphics library loaded on your server. The book doesn't mention the need for this but Pear uses it to make the image.
http://www.boutell.com/gd/ |
|
| Back to top |
|
 |
boodito
Joined: 28 Apr 2008 Posts: 2
|
Posted: Tue Apr 29, 2008 10:58 am Post subject: |
|
|
Thank you horseatingweeds for your quick reply,
I've been following the examples in the book, and I have the application on both Windows and Ubuntu, GD library is enabled on both environments, there are no line breaks above the <?php tag, but am still getting the error. Any ideas? |
|
| Back to top |
|
 |
boodito
Joined: 28 Apr 2008 Posts: 2
|
Posted: Tue Apr 29, 2008 12:58 pm Post subject: |
|
|
Got it to work,
I had the error_reporting set in the bootstrap file, commenting it solved the problem of CAPTCHA..  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|