Re: FW: Error using html::template
Sanjeewa Fernando <[email protected]> Wed, 10 Jun 2009 18:05:00 +1000
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
--===============3067675770359986209== Content-Type: multipart/alternative; boundary="_3b363d35-b169-4efb-88db-82ac0bfc9639_" --_3b363d35-b169-4efb-88db-82ac0bfc9639_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Mark and Mathew=2C =20 Thanks for both your suggestions.=20 =20 I think I would try using the (scalarref =3D> $ref_to_template_text) method= .=20 =20 I now have to experiment with figuring out how to use wget within a perl sc= ript. =20 =20 Regards=2C Sanjeewa=20 =20 Date: Wed=2C 10 Jun 2009 08:56:19 +1000 From: [email protected] To: [email protected] Subject: Re: [htmltmpl] FW: Error using html::template Other than that=2C I'd suggest you ask your sys-admin to fix their security policy.... What about using wget or curl to read the file=2C and then use the feature of H::T's "new" method to load a template from a variable? (scalarref =3D> $ref_to_template_text). I agree that disallowing opening files on a system seems obsessive. An "strace wget file:///home/..." shows that wget uses the open() system = call. I'd suspect that wget would also fail for the same reason. For wget to succeed (in this conext)=2C I suspect that it would need make a= request to a http-daemon=2C which itself serves the file. cheers=2C Mathew Robertson _________________________________________________________________ Looking for a new car this winter? Let us help with car news=2C reviews and= more http://a.ninemsn.com.au/b.aspx?URL=3Dhttp%3A%2F%2Fsecure%2Dau%2Eimrworldwid= e%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813= %2Fai%5F859641&_t=3D762955845&_r=3Dtig_OCT07&_m=3DEXT= --_3b363d35-b169-4efb-88db-82ac0bfc9639_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <style> .hmmessage P { margin:0px=3B padding:0px } body.hmmessage { font-size: 10pt=3B font-family:Verdana } </style> </head> <body class=3D'hmmessage'> Hi Mark and Mathew=2C<BR>  =3B<BR> Thanks for both your <SPAN style=3D"FONT-SIZE: 10pt=3B COLOR: #444444=3B FO= NT-FAMILY: Verdana=3B mso-fareast-font-family: 'Times New Roman'=3B mso-bid= i-font-family: Tahoma=3B mso-ansi-language: EN-US=3B mso-fareast-language: = EN-US=3B mso-bidi-language: AR-SA">suggestions. </SPAN><BR>  =3B<BR> I think I would try using the (scalarref =3D>=3B $ref_to_template_text) m= ethod. <BR>  =3B<BR> I now have to experiment with figuring out how to use wget within a perl sc= ript.<BR>  =3B<BR>  =3B<BR> Regards=2C<BR> Sanjeewa <BR>  =3B<BR> <HR id=3DstopSpelling> Date: Wed=2C 10 Jun 2009 08:56:19 +1000<BR>From: mathew.robertson@netrating= s.com.au<BR>To: [email protected]<BR>Subject: Re: [= htmltmpl] FW: Error using html::template<BR><BR><BR> <BLOCKQUOTE cite=3Dmid:[email protected]= il.com> <BLOCKQUOTE><PRE>Other than that=2C I'd suggest you ask your sys-admin to f= ix their security policy.... </PRE></BLOCKQUOTE><PRE>What about using wget or curl to read the file= =2C and then use the feature of H::T's "new" method to load a template from a variable? (scalarref =3D>=3B $ref_to_template_text). I agree that disallowing opening files on a system seems obsessive. </PRE></BLOCKQUOTE>An "strace wget <A class=3DEC_moz-txt-link-freetext>fi= le:///home/</A>..." shows that wget uses the open() system call. =3B I'= d suspect that wget would also fail for the same reason.<BR><BR>For wget to= succeed (in this conext)=2C I suspect that it would need make a request to= a http-daemon=2C which itself serves the file.<BR><BR>cheers=2C<BR>Mathew = Robertson<BR><br /><hr />Let us help with car news=2C reviews and more <a h= ref=3D'http://a.ninemsn.com.au/b.aspx?URL=3Dhttp%3A%2F%2Fsecure%2Dau%2Eimrw= orldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F= 1004813%2Fai%5F859641&_t=3D762955845&_r=3Dtig_OCT07&_m=3DEXT' target=3D'_ne= w'>Looking for a new car this winter?</a></body> </html>= --_3b363d35-b169-4efb-88db-82ac0bfc9639_-- --===============3067675770359986209== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects --===============3067675770359986209== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Html-template-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/html-template-users --===============3067675770359986209==--