Re: [SMARTY] using FTP for uploading cached files
| From: | Joe Stump | Date: | Fri, 18 Jun 2004 17:39:05 +0000 |
| Subject: | Re: [SMARTY] using FTP for uploading cached files | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11475@lists.php.net to get a copy of this message | ||
I understand the security reasons behind it. I thought you were an enduser, at which point I'd say "Hey get a $10/mo. VDS or something!" :)
--Joe
--
Joseph C. Stump
joe@joestump.net
http://www.joestump.net
On Jun 18, 2004, at 1:35 PM, Matus UHLAR - fantomas wrote:
On 18.06 13:27, Joe Stump wrote:The best way to do this would be to find where Smarty does the writing. If you're lucky it's abstracted (ie. Smarty::writeCacheFile() or whatever) and then extend Smarty and override that function. So you'd write a new writeCacheFile in your Smarty_FTP class that writes the file to a temp file (/tmp?) and then uploads it via FTP.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...Man, your ISP sucks, but it's a fun exercise :)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... ;) btw my colleague (our local PHP guru) tells me that FTP is recommended (by PHP developers - right?) way to upload files, and I quite agree with this (ftp helps avoid problems with safe_mode, access rights etc). So I thougt someone was already (at least) thinking about this, but seems nobody was (haven't found it in archive, docs, faq...) -- 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. You have the right to remain silent. Anything you say will be misquoted, then used against you.