Skip to content

Instantly share code, notes, and snippets.

View SebastienGicquel's full-sized avatar
💭
Coding

Sébastien Gicquel SebastienGicquel

💭
Coding
View GitHub Profile
@SebastienGicquel
SebastienGicquel / readme.md
Last active April 23, 2020 12:11 — forked from Yves-T/readme.md
DRUSH: How to install on mamp mac osx

#Installing Drush on MAMP

##Use PHP version of MAMP

XCode also installs a version of php on the command line. We want to use the mamp version of php. First check which version is running on your mamp installation. ( mamp panel -> preferences -> PHP ). In my case this is php5.6.10.

Launch the terminal app and type

@SebastienGicquel
SebastienGicquel / querystring.php
Created October 17, 2016 22:13 — forked from andho/querystring.php
Convert associative array into a query string
<?php
$params = array(
'query' => 'something',
'page' => 1,
'items' => 10
);
$url = 'http://someapi.com/search';