Skip to content

Instantly share code, notes, and snippets.

View giordhano's full-sized avatar

Giordhano Valdez giordhano

View GitHub Profile
if( !in_array('rest', explode('/', $_SERVER['REQUEST_URI']) )){ // Si no es un acceso al API
if(file_exists('../lib/Mobile-Detect/Mobile_Detect.php')){
require_once('../lib/Mobile-Detect/Mobile_Detect.php');
$detect = new Mobile_Detect;
@giordhano
giordhano / install_psql_php.sh
Created September 25, 2015 20:32 — forked from giorgiofellipe/install_psql_php.sh
Install PHP PGSQL extensions on Mac OS X Yosemite (change PHP_VER with your PHP version)
PHP_VER="5.5.14"
# Check if extension exists first
php -m | grep pgsql
# Update brew and install requirements
brew update
brew install autoconf
# Download PHP source and extract