Archive for the ‘php’ Category
Mobile browser detect
Found this nice scipt that can detect mobile visitors and its main function is to answer the question:
Is this visitor to my website using a mobile phone or PC?
Check it out at: http://detectmobilebrowsers.mobi/
multi php lint
PHP lint (php -l) only allows you to check 1 file at a time, Martijn shared this little command that loops through a given directory and check the syntax of any .php file.
1 $ find path/to/files -maxdepth 0 -type f -name \*.php -exec php -l {} \;
Thx to Martijn.