2018 m. sausio 18 d., ketvirtadienis
2018 m. sausio 17 d., trečiadienis
inode detect directories
du --inodes -S | sort -rh | sed -n \
'1,50{/^.\{71\}/s/^\(.\{30\}\).*\(.\{37\}\)$/\1...\2/;p}'
arba tiesiog suskaiciuoti failus aplankuose:
du -a | cut -d/ -f2 | sort | uniq -c | sort -nr
2018 m. sausio 8 d., pirmadienis
Detecting the HTTP method
$method = $_SERVER['REQUEST_METHOD']
if ($method == 'POST') {
// Method is POST
} elseif ($method == 'GET') {
// Method is GET
} elseif ($method == 'PUT') {
// Method is PUT
} elseif ($method == 'DELETE') {
// Method is DELETE
} else {
// Method unknown
}
Way to use PUT data from PHP:$method = $_SERVER['REQUEST_METHOD']; if ('PUT' === $method) { parse_str(file_get_contents('php://input'), $_PUT); var_dump($_PUT); //$_PUT contains put fields }
2017 m. lapkričio 15 d., trečiadienis
no composer
https://github.com/CurosMJ/NoConsoleComposer
or simple function https://gist.github.com/subbysnake/734eb37b14edd718d6c656b9e1a855fc
arba leisti tokia cmd
php -d allow_url_fopen=on composer.phar require google/auth
or simple function https://gist.github.com/subbysnake/734eb37b14edd718d6c656b9e1a855fc
arba leisti tokia cmd
php -d allow_url_fopen=on composer.phar require google/auth
2017 m. spalio 14 d., šeštadienis
2017 m. spalio 9 d., pirmadienis
Užsisakykite:
Pranešimai (Atom)