http://phantomjs.org/quick-start.html tai virtualus browseris, paleidziamas per CMD, apdorojantis puslapi ir visus JS
http://www.seleniumhq.org/
https://slimerjs.org/
Pagaliau ir chrome headless: https://developers.google.com/web/updates/2017/04/headless-chrome
2018 m. sausio 26 d., penktadienis
2018 m. sausio 22 d., pirmadienis
apache optimizavimas per config
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
Užsisakykite:
Pranešimai (Atom)