How to display images ?

2007-08-21 Thread RGKärcher
Hi guys , I a new to perl and mod_perl and Apache::Asp , And I wold like to ask you How to display an image ? I tried the example that display a binary file included in /eg , but Is there a simple way to show a an image ? and I want to show a flash animation also in my scripts . I use a code

Re: How to display images ?

2007-08-21 Thread Georg Grabler
On Tuesday 21 August 2007 15:48:23 RGKärcher wrote: > print " http://www.mysite.net/\";>   src=\"site_images/$image \"  width=\"160\" > height=\"180\" alt=\"image \" class=\"float-left\" > />\n"; Perl is just a bit differnt. Either, use ${image} instead of $image or use sprintf. -- Yours, Georg

Re: How to display images ?

2007-08-21 Thread Michael Peters
Georg Grabler wrote: > On Tuesday 21 August 2007 15:48:23 RGKärcher wrote: >> print " http://www.mysite.net/\";> > src=\"site_images/$image \" width=\"160\" >> height=\"180\" alt=\"image \" class=\"float-left\" >> />\n"; > > Perl is just a bit differnt. Either, use ${image} instead of $image or

Re: How to display images ?-Logs

2007-08-21 Thread RGKärcher
Hi guys , The apache log show me this : [Tue Aug 21 13:57:21 2007] [error] Unrecognized character \\xFF at /var/www/html/mgnosis/gnosisweb/site_images/buda.jpg line 1.\n When I do this : http://www.moderngnosis.com.ar/gnosisweb/site_images/buda.jpg And with others .jpgs .gifs etc . What Cou

Re: How to display images ?-Logs

2007-08-21 Thread Clinton Gormley
I wonder if for some reason apache is trying to execute your images like a CGI script. (First time I've heard of this, so may be wrong) Searching on that error message, I found a thread with the same problem. Have you added the PerlRequestHandler outside a File or Location directive? http://list

Re: How to display images ?-Not Working

2007-08-21 Thread RGKärcher
Hi guys , Thanks Michael and Georg but none of the examples works for me ... I'm using Apache::Asp . What could be the problem ? Thanks in Advance Rick --- Michael Peters <[EMAIL PROTECTED]> escribió: > Georg Grabler wrote: > > On Tuesday 21 August 2007 15:48:23 RGKärcher > wrote: > >>

Re: How to display images ?-Not Working

2007-08-21 Thread Clinton Gormley
On Tue, 2007-08-21 at 14:40 -0300, RGKärcher wrote: > Hi guys , > > Thanks Michael and Georg but none of the examples > works for me ... > > I'm using Apache::Asp . > > What could be the problem ? > > Thanks in Advance > What error are you seeing? What does the HTML being sent to your br

Re: How to display images ?-Not Working

2007-08-21 Thread Manoj Bist
Hi Rick, Please use Text::Template for generating the html you send to the client. As long as you keep appending the html string to $OUT, it should work under mod_perl2.0. http://search.cpan.org/~mjd/Text-Template-1.44/lib/Text/Template.pm Thanks, Manoj. On 8/21/07, RGKärcher <[EMAIL PROTECTE