using FTP for uploading cached files - implementation

From: Date: Mon, 21 Jun 2004 15:56:38 +0000
Subject: using FTP for uploading cached files - implementation
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11482@lists.php.net to get a copy of this message
> On Fri, Jun 18, 2004 at 07:35:44PM +0200, Matus UHLAR - fantomas wrote: >> Thanks for advise... I'll try to do it (or ask someone here). If I found >> clear way to implement it, I'll post a patch ;-) >> >> oh yes, temporary directory is another place to specify, e.g. I use >> upload_tmp_dir for such reasons... >> >> I am the ISP's webmaster ;-) and I counted 3 reasons not to allow ppl to >> write directly to their homes (security, quotas, their own lameness in >> many cases... ;) 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. 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 ... Any ideas/suggestions how to do it? I mean, do I have to implement it as variable that will indicate "use FTP to upload"? or should I just check if "ftp_username" is non-null ? -- 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. Microsoft dick is soft to do no harm

« previous php.smarty.general (#11482) next »