Re: [SMARTY] using FTP for uploading cached files
| From: | Joe Stump | Date: | Fri, 18 Jun 2004 17:27:14 +0000 |
| Subject: | Re: [SMARTY] using FTP for uploading cached files | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11473@lists.php.net to get a copy of this message | ||
Holy crap :)
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.
Man, your ISP sucks, but it's a fun exercise :)
--Joe
--
Joseph C. Stump
joe@joestump.net
http://www.joestump.net
On Jun 18, 2004, at 1:23 PM, Matus UHLAR - fantomas wrote:
Hello, I work by an ISP and our customer wants to use smarty templates. the httpd process (and php scripts) run by an UID that can't write to their home directories. The recommended way for uploading files to www area is FTP, so I'd like ask if there's possiblity to use FTP by smarty to upload cached files. I do not think that would be ineffective (this stuff would be done just once when template is changes) and I think that would be quite easy (user would just have to set up username,password and directory prefix). What's your opinions on this? Does anyone have plan to do this? -- 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. 99 percent of lawyers give the rest a bad name. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php