This file contains 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
#!/usr/bin/env bash | |
echo "--- Compiling gearman ---" | |
sudo apt-get install build-essential autoconf bison flex libtool libboost-all-dev libcurl4-openssl-dev libevent-dev libmemcached-dev uuid-dev libsqlite3-dev libmysqlclient-dev gperf | |
cd /tmp | |
wget https://launchpad.net/gearmand/1.2/1.1.12/+download/gearmand-1.1.12.tar.gz && tar -xvf gearmand-1.1.12.tar.gz | |
cd gearmand-1.1.12 | |
./configure | |
sudo make |
This file contains 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
<?php | |
$datePtbr = '09/12/2013'; | |
$date = DateTime::createFromFormat('d/m/Y', $datePtbr); | |
echo $date->format('Y-m-d'); |