if (!in_array($type, ['MX', 'SRV'])) {
if (!in_array($type, ['MX', 'SRV'], true)) {
$newname = 'path/to/new/direcotry/'.$path_parts['filename'].'_thumb.'.$path_parts['extension'];
// или
$newname = $path_parts['dirname'].DIRECTORY_SEPARATOR.'new'.DIRECTORY_SEPARATOR.$path_parts['filename'].'_thumb.'.$path_parts['extension'];
location ~ ^/proxy/(.*)$ {
/proxy/http://example.org/
/http://yandex.ru/
The query uses ORDER BY with an expression that includes terms other than the index column name:
SELECT * FROM t1 ORDER BY ABS(key);
SELECT * FROM t1 ORDER BY -key;