Author |
Message |
Topic: Read sql data from a large file |
satya61229
Replies: 4
Views: 9151
|
Forum: General Posted: Wed Nov 22, 2006 10:27 am Subject: Read sql data from a large file |
So what it is you want us to tell about nice smarty tips and tricks?
Sorry! I thought it is for any kind of tips and tricks related to programming. |
Topic: Read sql data from a large file |
satya61229
Replies: 4
Views: 9151
|
Forum: General Posted: Wed Nov 22, 2006 7:46 am Subject: Read sql data from a large file |
Suppose you have to write a script for reading insert data from a very large file (8-9 Mb).
Then What you would do?
Generally Script for this read all data in variable and then read one line a time ... |
Topic: how to avoid user from viewing my template files |
satya61229
Replies: 23
Views: 74172
|
Forum: Tips and Tricks Posted: Wed Nov 22, 2006 7:32 am Subject: Re: how to avoid user from viewing my template files |
if some one type: http://my.url/doc/templates/index.tpl, he can directly view or download the template. can some one tell me how to avoid this kind of thing from happing.
thank u.
BTW, I can only st ... |
Topic: Discussion:Smarty cache and opcode of PHP Accelerator |
satya61229
Replies: 4
Views: 17317
|
Forum: Tips and Tricks Posted: Wed Nov 22, 2006 5:17 am Subject: Discussion:Smarty cache and opcode of PHP Accelerator |
erps. I meant *decreasing* response time for your clients -- but I think you got the idea
Yes Sir. |
Topic: Discussion:Smarty cache and opcode of PHP Accelerator |
satya61229
Replies: 4
Views: 17317
|
Forum: Tips and Tricks Posted: Tue Nov 21, 2006 5:38 am Subject: Discussion:Smarty cache and opcode of PHP Accelerator |
PHP opcode caches like eAccelerator speedup PHP pages by short-circuiting the compile phase of PHP scripts. Smarty does a similar thing for its compiled pages but as Smarty simply generates PHP script ... |
Topic: Discussion:Smarty cache and opcode of PHP Accelerator |
satya61229
Replies: 4
Views: 17317
|
Forum: Tips and Tricks Posted: Mon Nov 20, 2006 1:15 pm Subject: Discussion:Smarty cache and opcode of PHP Accelerator |
Recently I learnt about smarty and get some know how about the various accelerator.
I come to know eAcclerator get the opcode when first time PHP code runs. And used them after that.
Smarty also s ... |
Topic: section/loop |
satya61229
Replies: 3
Views: 6231
|
Forum: General Posted: Thu Nov 16, 2006 8:55 am Subject: section/loop |
Thanks. It is working.
But it will only work for array with depth 2.
Cannot I write code in template such that they can run recursively.
All Smiles
==============
First of all you wrote 2 ... |
Topic: section/loop |
satya61229
Replies: 3
Views: 6231
|
Forum: General Posted: Sat Nov 11, 2006 12:30 pm Subject: section/loop |
In php file, I have assigned this:
$arr = array('a'=>'first', 'b'=>array(
'a'=>'second first',
'b'=>'second second'
));
$smarty->assign('arr', $arr);
In template file i am us ... |
|