I am a PHP developer since 2009. I am very good in designer as well. My career starts with a web designer then i learnt php frameworks and CMS. Also learnt mobile version - JQuery.
My ambition is to learn more in my day to day life. I am here to share my knowledge.
what is Memcache? Memcache is a caching system used to speed up web applications by holding small pieces of arbitrary data, it could be broadly compared to the $_SESSION variable in PHP, but memcache works across the whole application not just on a per user basis and has been successfully proven to make great gains in speed increases on web applications. Memcache was designed with Linux in mind and not windows, so it has posed some installation issues because Windows users are not so familiar with having to compile code from source as memcache does not come with any installation software. Installation: - Download this package, here - Unzip Memcached application in C:/memcached folder - Open command prompt, Type below command to install C:\memcached>memcached.exe -d install - Now its time to start the Memcache server C:\memcached>memcached.exe -d start (or) C:\memcached>net start memcached The memcached service was started successfully. Hope ...
Here is the code to validate for birthdate, //Validate for users below 18 only function birthdate($then, $min) { // $then will first be a string-date $then = strtotime($then); //The age to be less than 18 $min = strtotime('+18 years', $then); if(time() < $min) { return false; } else { return true; } }
Hi! Today i am going to share how to get android version using Javascript. Here is the code, <script> function getAndroidVersion(ua) { var ua = ua || navigator.userAgent; var match = ua.match(/Android\s([0-9\.]*)/); return match ? match[1] : false; }; getAndroidVersion(); //"4.2.1" parseInt(getAndroidVersion(),10); //4 parseFloat(getAndroidVersion()); //4.2 </script> Hope you got it. Any queries please leave a comment.
Comments
Post a Comment