Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
Выборка из базы медленнее вычисления md5 ?
это в моем ноуте(и то в зенде, а не в консоли) - сможете найти запрос(полезый запрос), который сможет, хотябы примерно, отработать быстрее???
$s = microtime(true);
md5('dfhuehfjdhjfhueyfuhjedhfjdfdfejhfuieyiufhjdhjfheuhfujdhjfd');
$e = microtime(true);
print ''.($e - $s);
0.0001218318939209
session.save_path = "N;MODE;/path"
where:
N is an integer. Instead of storing all the session files in
/path, what this will do is use subdirectories N-levels deep, and
store the session data in those directories. This is useful if you
or your OS have problems with lots of files in one directory, and is
a more efficient layout for servers that handle lots of sessions.
MODE is the octal representation of the mode. Note that this
does not overwrite the process's umask.
правда появляются две проблемки
NOTE 1: PHP will not create this directory structure automatically.
You can use the script in the ext/session dir for that purpose.
NOTE 2: See the section on garbage collection below if you choose to
use subdirectories for session storage
но они очень легко решаются очень маленькими скриптиками
Сессии — всегда ли они нужны?