The following is a code snippet of myscript.cgi:

my $tt2 = Template->new({
  INCLUDE_PATH => ['/home/savio/templates/src', '/home/savio/templates/lib'],
  OUTPUT_PATH => '/home/savio/html',
  DEBUG => 'plugins, filters',
});


and I have the following code in mypage.html:


       <tr><td>

       [% FILTER null;
          data = [ ["1st","2nd","3rd","4th","5th","6th"],
                   [    4,    2,    3,    4,    3,  3.5] ];

          USE my_graph = GD.Graph.pie( 200, 150 );

          my_graph.set(
                title => 'A Pie Chart',
                label => 'Label',
                axislabelclr => 'black',
                pie_height => 36,

                transparent => 0,
          );
          my_graph.plot(data).png | redirect('savio.png');
          END; -%]

          <img src="/var/www/savio.png">

       </td></tr>


When I 'run' my website and load mypage.html firefox outputs:

redirect error - /home/savio/html/savio.png: Permission denied

Where is the problem?

Regards,
Savio


      

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to