Архиви на блога

search for short open tags

If you use Linux and try to search for all php files containing short open tags you can use following command find -type f -exec grep -IlP ‘<\?(?!(php|xml|=))’ {} +

С етикет: , ,
Публикувано в linux, php

split mp4 file by size on linux

mkvmerge -o outputprefix –split 1G origfile.mp4 You can use mkvmerge from the packet mkvtoolnix which can easy and fast do the job

С етикет: , , ,
Публикувано в linux

Drupal debug

Sometimes is very hard to debug Drupal when you get white screen of death Very often some module is making the mess To check which module is breaking the site Open includes/module.inc and find function module_invoke_all Add bolded line to

С етикет: ,
Публикувано в Без категория

mysql Warning: Using unique option prefix pass instead of password is deprecated and will be removed in a future release. Please use the full name instead.

If you get some errors like this you need to open your home directory vim ~/.my.cnf and change on the row pass= to password=

С етикет: , , , , , ,
Публикувано в linux

idea for id storing of files

If you have some time of id in your database and you want to save file associated with this id it’s not a good idea to make dir with id value and save the file there because on some point

С етикет: , , , , , ,
Публикувано в linux, php