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 phptal files On 31-07-2008 at 15:09:03 Iván -

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 Alejandro Giardino <[EMAIL

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
Ivan, you can change the default destination with 'PHPTAL_PHP_CODE_DESTINATION' . I've tested it and it works!! (with the right permissions, obviously), it is in the http://phptal.motion-twin.com/manual/en/ page. Anyway it is true I've felt a bit lost about the cration of this templates, so I'm

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Iván -DrSlump- Montes
Kornel, 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 ... Ivan On Thu, Jul 31, 2008 at 4:04 PM, Alejandro Giardino <[EMAIL PROTECTED]> wrote: > Hello Kornel

Re: [PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Alejandro Giardino
Hello 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 Attribute Language for PHP" Asunto: Re: [PHP

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
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 anymore but I'm not shure about this point. Am I right? Does PHPTAL create an

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

[PHPTAL] Avoid intermediate phptal files

2008-07-31 Thread Alejandro Giardino
Hello, 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 I've red the manual and some mailing list archive and I've tried with 'PHPTAL_FORCE_REPARSE' but I couldn't avoid the creation of the files.