The details are on the Upcoming page for the event, see you on Tuesday 5th!
Category Archives: php
New Book: PHP Web Services
I’m delighted to announce that my new book “PHP Web Services” is now available as an early release! This is a project that I’ve been working hard on for the last few months, trying to put my extensive and hard-won experience of working with APIs into words and examples to make it easy for others to get up to speed in this area.
Zend Webinar on PHP 5.4: 19th February
See you there!
PHP 5.4 Timezone Error Message on Ubuntu
It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier.
These have been warnings in earlier versions of PHP, but as of PHP 5.4, the date.timezone
ini setting must be set correctly, using the continent and place – for me that’s “Europe/London”, like this:
date.timezone = "Europe/London"
If you see these errors, don’t panic, just add the line above to your php.ini.
PHP at FOSDEM 2013
Become a ZCE in 2013
Edit: Pack now available from https://leanpub.com/zce
Continue reading
9 Magic Methods in PHP
The title is a bit of a red herring as PHP has more than 9 magic methods, but these will get you off to a good start using PHP’s magic methods. It might be magic, but no wands are required!
Managing PHP 5.4 Extensions on Ubuntu
aptitude install php5-pear
and then get tangled in dev packages (clue: look which libcurl you have already installed to figure out which of a long list of -dev
packages to choose), managing finally to emerge with a pecl install http
that completes successfully with the words:
configuration option "php_ini" is not set to php.ini location
You should add "extension=http.so" to php.ini
I’ve been using Ubuntu for some time however, and we don’t put settings straight into php.ini
, there’s a directory called /etc/php5/conf.d/
where all the various module configurations live, or you can enable things just for when PHP is called by apache or from the CLI. However today I hopped into /etc/php5/
and saw this:
.
├── apache2
├── cli
├── conf.d
└── mods-available
Hmmm … mods-available
? Continue reading
A Little More OOP in PHP
This post follows an earlier entry introducing the basics OOP and what that looks like in PHP. This time around we’ll look at some more advanced concepts and some more practical examples of building code, covering use of constructors and how to add access modifiers in to control how calling code can operate on your objects. We’ll also show off how to create static methods and properties and, perhaps more importantly, illustrate applications of these features.
PHP at FOSDEM: Call for Papers
Basically, we need to get some great submissions, so that when we come to choose the schedule (and it is only one track, one day, there’s only a few slots available), we can put together something really fitting to showcase PHP for a wider audience than a PHP conference. Selection will be done on the basis of talk topic, abstract and length in the first instance – we’ll only take into account the actual speakers when we’re curating the final list.
Key things you need to know:
- link to call for papers form (google forms)
- Event is 2nd (and 3rd, but the PHP room is on the 2nd) of February 2013, at ULB campus Solbosh in Brussels, Belgium
- No expenses will be covered by the event
- There’s also a Call for Stands if you have a project that you would like to represent there
- If you’re not speaking, come and join us anyway!