Re: [PHPTAL] Avoid intermediate phptal files

2008-08-20 Thread Kornel Lesiński
On 20-08-2008 at 15:28:20 romtek <[EMAIL PROTECTED]> wrote: I'd like to add that each project should use its own destination for compiled templates because at least in v1.1.8 they clash if you use the same names for macros. I reported this in May 9 2008. Have you tested it in version later t

Re: [PHPTAL] Avoid intermediate phptal files

2008-08-20 Thread romtek
On Wed, Aug 20, 2008 at 9:23 AM, Kornel Lesiński <[EMAIL PROTECTED] > wrote: > On 20-08-2008 at 15:12:06 romtek <[EMAIL PROTECTED]> wrote: > > I'd like to add that each project should use its own destination for >> compiled templates because at least in v1.1.8 they clash if you use the >> same na

Re: [PHPTAL] Avoid intermediate phptal files

2008-08-20 Thread Kornel Lesiński
On 20-08-2008 at 15:12:06 romtek <[EMAIL PROTECTED]> wrote: I'd like to add that each project should use its own destination for compiled templates because at least in v1.1.8 they clash if you use the same names for macros. I reported this in May 9 2008. Have you tested it in version later t

Re: [PHPTAL] Avoid intermediate phptal files

2008-08-20 Thread romtek
On Thu, Jul 31, 2008 at 2:56 PM, Werner <[EMAIL PROTECTED]> wrote: > E.g. if 'first.tpl' template has a code destination of '/tmp/first/' and > 'second.tpl' has a code destination of '/tmp/second/', then there is a > change of having duplicate function names if your calling script executes > temp

Re: [PHPTAL] Avoid intermediate phptal files

2008-08-01 Thread Sergio Chersovani
Alejandro Giardino ha scritto: Kornel, I know I'm asking too much but I need very specifics answers to contact this people and explain them the situation, In an other mail you told me "These files are automatically cleaned up once in a while"... can I ask you when and how??? This is exactly w

Re: [PHPTAL] Avoid intermediate phptal files

2008-08-01 Thread Kornel Lesiński
On 31-07-2008 at 20:56:42 Werner <[EMAIL PROTECTED]> wrote: Just another potential pitfall worth mentioning in there, maybe, is the fact that you should be careful when your templates output intermediate files to more than one directory No, it's not a problem. Function name contains MD5 of com

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Werner
Nice, thanks Iván. Just another potential pitfall worth mentioning in there, maybe, is the fact that you should be careful when your templates output intermediate files to more than one directory, as the different intermediate files might contain the same function names, which will result in a

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Iván -DrSlump- Montes
On Thu, Jul 31, 2008 at 6:00 PM, Kornel Lesiński <[EMAIL PROTECTED]> wrote: > > It's a good idea. Can you do it? :) > Please feel free to modify it as you see fit. PHPTAL for SysAdmins: PHPTAL functions by generating PHP files from the template's logic, this means that it needs a directory to st

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Alejandro Giardino
I'll try, I'm not an expert but I'll try - Mensaje original - Fecha:Thu, 31 Jul 2008 17:00:50 +0100 De: "Kornel Lesiński" <[EMAIL PROTECTED]> Para: "Template Attribute Language for PHP" Asunto: Re: [PHPTAL] Avoid intermediate php

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Alejandro Giardino
Thank you Kornel!!! - Mensaje original - Fecha:Thu, 31 Jul 2008 16:59:56 +0100 De: "Kornel Lesiński" <[EMAIL PROTECTED]> Para: "Template Attribute Language for PHP" Asunto: Re: [PHPTAL] Avoid intermediate phptal files On 31-07-2008 at 15:30:34

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Kornel Lesiński
On 31-07-2008 at 15:09:03 Iván -DrSlump- Montes <[EMAIL PROTECTED]> wrote: It might be a good idea to create a small section in the manual for sysadmins. Explaining why compiled templates are created, ideal permission sets, how to change the default location ... It's a good idea. Can you do

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Kornel Lesiński
On 31-07-2008 at 15:30:34 Alejandro Giardino <[EMAIL PROTECTED]> wrote: "These files are automatically cleaned up once in a while"... can I ask you when and how??? When template is compiled, with random probability controlled by setCachePurgeFrequency(). It just deletes files older than s

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Alejandro Giardino
ile"... can I ask you when and how??? Thank you, thank you, thank you, jejeje - Mensaje original - Fecha:Thu, 31 Jul 2008 16:09:03 +0200 De: "Iván -DrSlump- Montes" <[EMAIL PROTECTED]> Para: "Template Attribute Language for PHP" Asunto: Re: [

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Iván -DrSlump- Montes
lo Kornel and thankyou for your answer. About your question, the server > administrator asked my about this. > > > - Mensaje original - > Fecha: Thu, 31 Jul 2008 14:43:35 +0100 > De: "Kornel Lesiński" <[EMAIL PROTECTED]> > Para: "Template Attrib

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Alejandro Giardino
or PHP" Asunto: Re: [PHPTAL] Avoid intermediate phptal files On 31-07-2008 at 14:18:39 Alejandro Giardino <[EMAIL PROTECTED]>wrote:> I'm using PHPTAL with some forms in a web site. PHPTAL is writing files> in /tmp as a usual behavior, but I would need to avoid the files cre

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Kornel Lesiński
On 31-07-2008 at 14:57:16 Alejandro Giardino <[EMAIL PROTECTED]> wrote: Thank you very much Ivan!, so, then, I have an other question... The files created are finite or infinite??? I've seen, for example, that one of my forms create 13 files (one for each tag I have in the form) and not an

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Alejandro Giardino
create an specific number of files and not anymore??? Regards  Mensaje original - Fecha:Thu, 31 Jul 2008 15:28:27 +0200 De: "Iván -DrSlump- Montes" <[EMAIL PROTECTED]> Para: "Template Attribute Language for PHP" Asunto: Re: [PHPTAL] Avoid intermedi

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Kornel Lesiński
On 31-07-2008 at 14:18:39 Alejandro Giardino <[EMAIL PROTECTED]> wrote: I'm using PHPTAL with some forms in a web site. PHPTAL is writing files in /tmp as a usual behavior, but I would need to avoid the files creation It can't be avoided currently. Why do you need to do that? -- regards, K

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Iván -DrSlump- Montes
I don't think that is possible without seriously hacking a solution. PHPTAL works by generating a PHP file from the template, this file is then 'included', parsed and executed by PHP itself. So to avoid the creation of those file, the output of PHPTAL should be kept in a variable and then call eva