I am a bit experimenting on how to randomize an image and display it via cakephp, but not sure if my approach is correct.
I have here a link that will display an image (random): http://www.louiemiranda.net/about/background However, it won't show up. My code on the controller is pretty much simple. <?php class AboutController extends AppController { var $name = 'About'; function background() { header("Content-type: image/gif"); header('/img/bgrandom/web_splash'.rand(1,2).'.gif'); } } ?> When accessing the background, it would randomize into two different file using 1 and 2. However, I am hitting a wall. I figured, maybe cakephp is loading something I didn't knew yet. -- so the browser could not understand. Any ideas? -- Louie Miranda ([EMAIL PROTECTED]) http://www.louiemiranda.net Security Is A Series Of Well-Defined Steps chmod -R 0 / ; and smile :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
