How to detect that the user is using a web browser on mobile phone? The following PHP code can detect it by scanning the user agent string. if (preg_match(‘/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|android)/i’, strtolower($_SERVER['HTTP_USER_AGENT']))) { $mobile_browser++; } if ((strpos(strtolower($_SERVER['HTTP_ACCEPT']),’application/vnd.wap.xhtml+xml’) > 0) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))) { $mobile_browser++; } $mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'], 0, 4)); $mobile_agents = array( ‘w3c ‘,’acs-’,'alav’,'alca’,'amoi’,'audi’,'avan’,'benq’,'bird’,'blac’, ‘blaz’,'brew’,'cell’,'cldc’,'cmd-’,'dang’,'doco’,'eric’,'hipt’,'inno’,

Read more…

So, the new Photoshop CS6 Beta is available for download. Is it worth to install it? I downloaded it (1,6 GB), unziped it, and finally install it. After one day of using it, what can I say? Hmmmmm… It cool, but I will wait for the complete release. Advantages: – A more attractive user interface

Read more…