'preVars' => array(
array(
'GETvar' => 'no_cache',
'valueMap' => array(
'nc' => 1
),
'noMatch' => 'bypass'
),
array(
'GETvar' => 'abc',
'valueMap' => array(
'a' => 1,
'b' => 2,
'c' => 3,
'd' => 4,
),
'noMatch' => 'bypass'
),
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'at' => '1',
'ch' => '2'
),
'noMatch' => 'bypass',
)
)
Archive for 七月, 2013
Realurl前辍
ts odd even in template
temp.elemente = COA
temp.elemente {
10 = CONTENT
10 {
table = tt_content
select {
where = colPos = 2
orderBy = sorting
}
renderObj < tt_content
renderObj.wrap = |###SPLITTER###
}
stdWrap.split {
token = ###SPLITTER###
cObjNum = 1 |*| 2 || 3 |*| 4 || 5
1.current = 1
1.wrap = |
2.current = 1
2.wrap = |
3.current = 1
3.wrap = |
4.current = 1
4.wrap = |
5.current = 1
}
}
Sending files better: Apache mod_xsendfile and PHP
I have previously written a quick post on making files downloadable through PHP scripts. The example in the post reads the file itself into a variable, and as pointed out in the comments, it’s not necessarily a very good idea especially if you deal with large files.
Recently at work, we needed a reliable way to send files to users’ browser, and I decided to take a look at mod_xsendfile, as suggested by Tom Graham.
It’s also supported by other web servers such as Lighttpd and nginx. (continue reading…)
8 Best Php Libraries for Developers
The goal of the Standard PHP Library-or SPL, in brief-is to provide a standard library of interfaces which allows developers to take full advantage of object-oriented programming in PHP 5.Therefore in this article we have collected 8 of the best PHP Libraries which will assist and help developers to simplify their work and serve their development tasks.
If you like the article you might be interested in our other article on 8 Best Php Tools and Applications for Developers” (continue reading…)
