Skip to content

Instantly share code, notes, and snippets.

@Fake51
Fake51 / gist:2727401
Created May 18, 2012 20:19
typical installs to make php compilation work (typical install from other gist)
apt-get install apache2-prefork-dev mysql-server libicu-dev libxml2-dev libbz2-dev libcurl4-openssl-dev libpng12-dev libopenjpeg-dev g++ libmcrypt-dev libreadline-dev
@Fake51
Fake51 / gist:2588645
Created May 3, 2012 19:37
Typical php configure settings
./configure --prefix=/usr/ --with-config-file-path=/usr/lib/php --with-apxs2=/usr/bin/apxs2 --enable-fpm --with-openssl --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --with-gd --with-mhash --enable-intl --enable-mbstring --with-mcrypt --with-mysql --with-mysqli --enable-pcntl --with-readline --enable-soap --enable-sockets --with-xmlrpc --enable-zip --enable-mysqlnd --with-pear --with-pdo-mysql=mysqlnd
@Fake51
Fake51 / gist:865611
Created March 11, 2011 08:13
Find .php files modified less than 120 minutes ago
find . -mmin -120 -iname '*.php'
@Fake51
Fake51 / gist:865603
Created March 11, 2011 08:04
Syntax check all .php files in folder and subfolder
find . -iname '*.php' -exec php -l '{}' \; | grep '^No syntax errors' -v | less