Monthly Archives: August 2013

howto develop a #goog #gwt app on goog #appengine and #openshift

How to develop Google Web Toolkit (GWT) web application and deploy it on Google App Engine and OpenShift without platform lock-in.

Advertisements

php ini_get may return unexpected results !

Many ini memory size values, such as upload_max_filesize, are stored in the php.ini file in shorthand notation. ini_get() will return the exact string stored in the php.ini file and NOT its integer equivalent. Attempting normal arithmetic functions on these values will not have otherwise expected results.

#intel opensource #minnowboard

#intel opensource atom based #minnowboard motherboard

see also

#php #dates

how to add a year to a php date

PHP ALL

$oneyear = strtotime("+1 year");

PHP 5.2

$date = getdate();
$oneyear = mktime(
        $date['hours'],$date['minutes'],$date['seconds'],
        $date['mon'],$date['mday'],$date['year']+1
    );
echo $oneyear;
echo PHP_EOL;

PHP 5.3

$oneyear = date_timestamp_get(
    date_add(date_create(),
        date_interval_create_from_date_string('1 year')));
echo $oneyear;
echo PHP_EOL;