Re: [PHP] Detect and Redirect Mobile Users
Hello, I stumbled upon this the other day : http://mobiledetect.net/ I haven't tried it yet, since I have my own small user agent parser when I need it, but it may help you if it's a pure php solution you're looking for. Have a nice day 2013/6/13 dealTek deal...@gmail.com Hi all, I'm curious of a simple, common, universal way to detect a mobile user so I can redirect them to a mobile directory... What is best for this: Javascript - CSS - PHP? I think for my purposes if I can detect screen size or mobile browser agent - that would be good enough for what I need right now. Thanks in advance - Dave -- Thanks, Dave - DealTek deal...@gmail.com [db-3] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Camille Hodoul http://camille-hodoul.com/
Re: [PHP] Compiler for the PHP code
Googling compile php code gave me this : http://stackoverflow.com/questions/1408417/can-you-compile-php-code It looks like you have some options but I haven't tried any yet, so I can't help you with the installation 2013/3/19 Kevin Peterson qh.res...@gmail.com My webcode written in PHP and it is running in the interpreted way. My problem is it is not giving the desired performance so want to try the compiler if any. Please suggest if we have any compiler option available for the PHP code and more important is this new option. -- Camille Hodoul http://camille-hodoul.com/
Re: [PHP] PCRE Expression
which pcre function do you use ? \{(\n*[a-z\-]*:[a-z\s0-9]*;\n*)*\} seems to work on my regex tester. Le 25/10/2012 18:51, Volmar Machado a écrit : Hi All, I have this expression : '/\{(\n*[a-z\-]*:[a-z\s0-9]*;\n*)\}/s' which grep all single property css like: .chalala{ float:left; } .chalala{float:left;} .chalala{ float:left;} But I want to grep multiples properties like: .chalala{ float:left; float:right; } So I think that I need to repeat subgroup many times and put a '*' after subgroup, like this: '/\{(\n*[a-z\-]*:[a-z\s0-9]*;\n*)*\}/s' but didn't work, how I can check if a subgroup repeat {0,} ? -- Camille Hodoul http://camille-hodoul.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php