The Top 10 Ranked Universities in the U.

The Top 10 Ranked Universities in the U.S. 2016 – As you may be narrowing down your choices for top colleges to attend this year, Socrato has the list of 2016’s top ranked universities in the U.S! Most may sound familiar to you, but let us tell you a little bit more about each one.   Ranked at #1: Princeton University proudly takes the spotlight in New Jersey. Princeton is a private institute with tuition costs coming out to about $40,000. Despite what some may consider…


All About The Common App – In today’s da

All About The Common App – In today’s day and age, the internet and operating things in your life via online applications is quite common these days. Some will argue that they prefer the old fashioned way, but times are progressing and the most effective way to do things is simply by online applications like the Common App – An all in one website where students can have access to the most diverse set of colleges where your uploaded college application can be sent to all…

A Review of Key Changes in the New SAT –

A Review of Key Changes in the New SAT – SATs are just around the corner and some of you may be wondering at this point, the key differences between the old SATs and the new SATs that you are about to take part in. First, we will start off by giving a simple explanation on why the SAT changed at all. The new SAT is newly designed to give students the kind of reading and math skills that they will likely need for college and the future there on out – After all, times hav…

Tips and Resources to Prepare for the SA

Tips and Resources to Prepare for the SAT Subject Tests – How many things do you need to be a successful prospective college student candidate? Having all of your ducks in a row and staying focused on your studies are a couple of the most important things to do. Just like you would with any other aspects of your life, you give your time to the things that matter the most. You’ve prepared to take your SAT exam, but what about the SAT Subject Tests? In our previous post o…

How To Use Memcached with MAMP



When using Windows the comparison is cut short: memcache appears to be the only client available. brew install memcache and man memcache are not available on mac.


The piece that does the backend work is called a “daemon” (think “service” in Windows-land), while the interface or client application is what you use to control or access the daemon. The daemon is most often named the same as the client, with the letter “d” appended to it. For example “imap” would be a client that connects to the “imapd” daemon.

Memcached is a caching daemon designed especially for  dynamic web applications to decrease database load by  storing objects in memory.

Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

PECL :: The PHP Extension Community Library

PECL is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions. To connect the memcached to PHP, there is an extension named memcache and one named memcached in PHP which are different extensions to access memcache or we can say PHP has two memcached libraries named memcache and memcached.



memcache ( memcached extension which allows to work with memcached through handy OO and procedural interfaces. Memcache has been around longer, does not require additional libraries, and has pre-compiled binaries ( for even windows.


memcached ( PHP extension for interfacing with memcached via libmemcached library. This extension uses libmemcached library to provide API for communicating with memcached servers. Memcached offers more methods but it also require external C/C++ libraries libmemcached ( to provide API for communicating with

memcached servers and also require to install libevent ( for it to compile. Memcached is a newer API, it also provide memcached as a session provider which could be great if you have a farm of server. memcached is a high-performance, distributed memory object caching system,

generic in nature, but intended for use in speeding up dynamic web applications

by alleviating database load.

The frustration here is caused by the author of the PHP extension which was badly named memcached, since it shares the same name as the actual daemon called memcached.


  1. Install memcached through
    1. brew install memcached

and after installation check with

  1. man memcached
  2. memcached -h
  • Install memcached dependencies
    1. brew install libmemcached
    2. brew install libevent
  • For PECL to work we need to prepare the build environment for extensions by making the PHP source available.
  • Check your desired version of PHP that you’d like to use in MAMP. This dropdown is located in the PHP tab in MAMP Control Panel.
  • Visit the Downloads Page on and download the source code. If your release isn’t listed, visit the Releases page.
  • $ mkdir /Applications/MAMP/bin/php/[php version folder]/include
  • $ mv ~/Downloads/[php version folder] /Applications/MAMP/bin/php/[php version folder]/include/php
  • Extract the source into a new directory in your PHP installation /Applications/MAMP/bin/php/[php version folder]/include/php and run the configure script.
  • $ cd /Applications/MAMP/bin/php/[php version folder]/include/php
  • $ ./configure or Run on console : /Applications/MAMP/bin/php/[php version folder]/include/php/configure
  • All being well, you should now be able to install PECL extensions.
  • Add PHP memcached extension,
    1. Run on console sudo /Applications/MAMP/bin/php/[php version folder]/bin/pecl i memcached
  • If you happen to get the WARNING: channel “” has updated its protocols, use “pecl channel-update” to update
    • Run /Applications/MAMP/bin/php/[php version folder]/bin/pecl channel-update
  • Add “” to php.ini /Applications/MAMP/bin/php/[your php version]/conf/php.ini
  • Restart Apache
  • Verify memcache is installed correctly by going to http://localhost/MAMP/phpinfo.php and⌘+F for “memcache”.
  • Once you have your local binaries properly configured, you can essentially install any other php extension by using that pecl binary. pear, php and phpize should work as well.


    Make sure pecl compiled the memcache extension to the correct place. It should be in a folder named: /Applications/MAMP/bin/php/[PHP VERSION FOLDER]/lib/php/extensions/no-debug-non-zts-20060613


    My First module with Codeignitor : CRUD Part 1

    After starting with Codeignitor my first learning module was Just a CRUD and it took me a long time to settle with the basic codebase for my application.

    I am using HMVC (will add another post for HMVC) in my Application so my URL contains the module names also.

    What I am going to achieve:

    1. List the Records

    2. Pagination for these records

    3. Ability to change the display limit of records per page

    4. Paging information / Record Information (like showing 11 to 20 of 300 Records)

    5. Search / Filter for the Records

    6. Sort on the headings of the records.

    7. Add the Records

    8. Edit/Update the records

    9. Delete the Records

    10. View the details of single record.

    <code>echo ‘this’;</code>


    echo ‘this’;