Re: [SMARTY] using FTP for uploading cached files - implementation
| From: | Matus UHLAR - fantomas | Date: | Tue, 22 Jun 2004 13:31:22 +0000 |
| Subject: | Re: [SMARTY] using FTP for uploading cached files - implementation | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11484@lists.php.net to get a copy of this message | ||
> > Messju Mohr <messju@lammfellpuschen.de> wrote:
> > > smarty doesn't want to write to your home, it just wants a dedicated
> > > directory where to write it compiled templates.
> > >
> > > i understand that this is a security concern: the webserver writes
> > > php-files to disk and executes them afterwards.
> > >
> > > you can run smarty without that: compile the templates on another
> > > (development- or test-)maching and upload the contents of the
> > > templates_c-folder to the production-machine. you just have to set
> > > $smarty->compile_check to false on the production-machine to allow
> > > this kind of staging. compile_check=false prevents smarty from
> > > comparing file-modification-times of the source-template and the
> > > compiled one, so smarty doesn't try to compile the template and write
> > > it to the disk.
> On Mon, Jun 21, 2004 at 03:56:38PM -0000, Matus UHLAR - fantomas wrote:
> > I'd better not to tell this to the customer. So it seems tht making a
> > patch for smarty to be able to upload via FTP is a way to go ...
On 22.06 15:18, messju mohr wrote:
> I doubt.
>
> > Any ideas/suggestions how to do it?
>
> What do you want do to? You want to use ftp-functions instead of
> fread() and fwrite()? That makes no sense.
compile a template in temporary directory and then upload the result via
FTP to working directory. That should work imho.
--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"They say when you play that M$ CD backward you can hear satanic messages."
"That's nothing. If you play it forward it will install Windows."