This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$sorted = array(); | |
foreach($array AS $key => $value) | |
{ | |
$sort_key = (empty($sorted[$value['amount']]) ? $value['amount'] : $value['amount']+1); | |
$sorted[$sort_key] = $value; | |
} | |
krsort($sorted); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond $1 !^(images|pdf|styles|admin.php|js|images|css|scripts|themes|favicon\.ico|robots\.txt|index\.php) [NC] | |
RewriteRule ^(.*)$ /index.php/$1 [L] | |
# compress text, html, javascript, css, xml: | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript | |
AddOutputFilterByType DEFLATE text/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension=apc.so | |
[APC] | |
apc.enabled=1 | |
apc.shm_segments=1 | |
apc.shm_size=1024M | |
;Relative to the number of cached files (you may need to watch your stats for a day or two to find out a good number) | |
apc.num_files_hint=7000 |