Monday, October 27, 2008

Trouble Viewing Dynamically Created Images...

So I have a few classes that dynamically create images. One of which
works on the same server, but not in the directory that I have cake
currently installed, and the other is one I am trying to get to work
with cake php.

When I view the one that works, simply as a url... It generates the
image just fine. When i load i through <img
src="url_to_php_generated_image"> it works fine when not using cake.
When I try to load this image in my cake environment it does not
appear at all (the src as a simple url still works though).

I became of this after messing around with all the different captcha
components in the bakery. They all "work" but give me the same result.
The result being that the image does not display when using <img
src="url_to_php_generated_image">, and when going directly to
url_to_php_generated_image will display scrambled text which seems to
me like binary? So I guess the image is being created; however, it
isn't being parsed correctly by cake some how? I am not quite sure
what is happening.

It seems others are having this problem since in all the captcha
bakery stuff people are complaining.

I did try turning off debug mode. However, that simply removed the
header errors when trying to view the image using the url. I also used
a blank layout to try and view the image without the rest of the site,
but that had no effect either....

I am stuck...

Any help would be much appreciated!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: