- Install memcached. I'd suggest using homebrew.
brew install memcached - Select your desired version of PHP that you'd like to use in MAMP. This dropdown is located in the PHP tab in MAMP PRO.
- Visit the Downloads Page on php.net and download the source code. If your release isn't listed, visit the Releases page.
- Extract the source into
/Applications/MAMP/bin/php/[php version folder]/include/php. /Applications/MAMP/bin/php/[php version folder]/include/php/configure/Applications/MAMP/bin/php/[php version folder]/bin/pecl i memcache.- Add
extension=memcache.soto your php.ini- MAMP Pro:
/Applications/MAMP\ Pro/MAMP\ PRO.app/Contents/Resources/php[your php version].ini
- MAMP Pro:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://alexrayu.com/blog/saveupdate-field-collection-without-nodesave | |
| // Get field collection (supposedly containing one image with meta data) | |
| $fc = entity_load('field_collection_item', array($fcid)); | |
| // If we were to have multi-value fc's, we weould have a cycle here in place of current() | |
| $fc = current($fc); | |
| // Get meta data. A custom function. | |
| $meta = custom_get_meta_data($fc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ref:- http://cambio.name/personal/content/installing-drush-7x-adding-dependencies-using-composer | |
| Installing Drush 7.x (Adding dependencies using composer) | |
| Submitted by admin on Sat, 07/12/2014 - 14:23 | |
| 1. Download package in some folder |
sign up for a new relic account first and you'd get the license key on your account page.
sudo sh -c 'echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list'
sudo wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond
sign up for a new relic account first and you'd get the license key on your account page.
sudo sh -c 'echo deb http://apt.newrelic.com/debian/ newrelic non-free >> /etc/apt/sources.list.d/newrelic.list'
sudo wget -O- https://download.newrelic.com/548C16BF.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install newrelic-sysmond
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| For mongo extension | |
| 1.pecl install mongo | |
| 3.apt-get install php5-dev php5-cli php-pear | |
| 3.vim /etc/php5/apache2/php.ini | |
| extension=mongo.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| RewriteEngine on | |
| RewriteCond %{SERVER_PORT} !^443$ | |
| RewriteRule ^quote-flow https://%{HTTP_HOST}/quote-flow [R=301,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db_change_field('open_sub','mobile','mobile', | |
| array( | |
| 'description' => 'Mobile no.', | |
| 'type' => 'varchar', | |
| 'length' => 255, | |
| 'not null' => FALSE, | |
| ) | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| time drush php-eval ' $path="node/10"; menu_set_active_item($path); menu_execute_active_handler($path, TRUE);' > /dev/null |