use phpFastCache\CacheManager;
// Setup File Path on your config files
CacheManager::setup(array(
"path" => '/var/www/phpfastcache.com/dev/tmp', // or in windows "C:/tmp/"
));
// In your class, function, you can call the Cache
$InstanceCache = CacheManager::getInstance('files');
PhpFastCache has some options that you may want to know before using them, here's the list:
- default_chmod | int>octal (default: 0777)
[>=V4]
This option will define the chmod used to write driver cache files. - securityKey | string (default: 'auto')
[>=V4]
A security key that define the subdirectory name. - htaccess | bool (default: true)
[>=V4]
Option designed to (dis)allow the auto-generation of .htaccess.
* Drivers like Files, Sqlite, Leveldb, etc.
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<link href="http://cdnjs.cloudflare.com/ajax/libs/select2/4.0.0/css/select2.min.css" rel="stylesheet" /> | |
</head> | |
<body> | |
<select style="width: 300px;" multiple="multiple"> | |
<!-- <optgroup label="Swedish Cars">--> |
This file contains hidden or 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
function match_wildcard( $wildcard_pattern, $haystack ) { | |
$regex = str_replace( | |
array("\*", "\?"), // wildcard chars | |
array('.*','.'), // regexp chars | |
preg_quote($wildcard_pattern) | |
); | |
return preg_match('/^'.$regex.'$/is', $haystack); | |
} |
This file contains hidden or 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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
This file contains hidden or 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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
NewerOlder