Take this example (in a file called namespaced-class.php)
namespace Christmas\DaysOf;
class PartridgeInAPearTree{
}
Now we have a few ways to access that class.
Take this example (in a file called namespaced-class.php)
namespace Christmas\DaysOf;
class PartridgeInAPearTree{
}
Now we have a few ways to access that class.
I’ll be delivering a keynote at the PHPBenelux Conference in Antwerp in January alongside my good friend Ivo Jansch. Between us we’ve got plenty of stories to tell from our experiences in various areas of development and we’d like to share those with you! I hope you’ll come along and join us, and if you are quick you can catch the early bird prices, saving 50 euro.
On a personal note I have many great friends in this part of the world and I’m super-excited to know that I’m able to visit and see both the old friends I know well and the new friends I haven’t met yet. I attended this conference last year and it had a great atmosphere; this year the content is better again and with three tracks, I don’t know how we’ll choose which sessions to see!
Are you attending? Leave a comment and make sure to come and say hi at the conference in Belgium :)
Your google account can have access to one or more analytics accounts. For example when I log in I have access to accounts which hold the data for lornajane.net, phpwomen.org, joind.in and a few other things I’m involved with. Only lornajane.net actually belongs to me, the others are accounts created by someone else and which I have access to. The first challenge therefore is to work out which a user has access to – the best place to start is the reference page for the Management API, part of google’s own documentation. In a nutshell, we build up a URL like this, being increasingly specific by fleshing out the values in square brackets on subsequent calls:
https://www.google.com/analytics/feeds/datasources/ga/accounts/[accountID]/
webproperties/[webPropertyID]/profiles/[profileID]/goals
First up then, is to get a list of accounts for our authorized user – I already have a valid oauth access token to use in this example Continue reading
I was reading from their analytics data feed API, this returns a few key fields and then multiple <entry> tags, each with namespaced children. The entry tags look something like: Continue reading
I have one guest ticket for this event, and I want to make sure that it goes to someone who will make good use of it. So, if you would like to be my guest for DayCamp4Developers, this weekend 6th November, then leave me a comment and tell me why you want to attend. In a couple of days (probably Wednesday evening, UK time) I’ll close the comments and pick a winner – put your email address in the comments box (it isn’t displayed) so I can reach you and let you know.
If you don’t win, and want to join us anyway, then you can still buy tickets. Check with your local user group if they have an affiliate code and if not – use this link to buy your tickets, using my affiliate code ;)
Looking forward to “seeing” everyone on Saturday!
Function HttpRequest::addRawPostData() is deprecated
It isn’t obvious from the PHP manual page what I ought to do instead, however further inspection shows that it is recommended to use setBody() instead. This can be used in exactly the same way, and my code seems to work perfectly well with this substitution. If you have any more information about this change, leave me a comment – I’d be interested to hear it.