Today I needed to pull email addresses for people who had signed up to a thing out of MySQL and into MailChimp so that I could actually email them about the thing. MySQL actually has a very cute feature for exporting the results of an SQL query as a CSV file, which I had to look up to remember how to do it. It goes something like this: Continue reading
Teaching Those Beginning The Journey
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!
Confident Coding Report
Continue reading
Ada Lovelace Day 2012: Estelle Weyl
Introduction to PHP OOP
Since the introduction of PHP 5 in 2004, PHP has had an object model worthy of that description and became a truly modern language for use on the web. Earlier PHP scripts would have been of the kind where, to quote from Alice’s Adventures, you would “Begin at the beginning, and go on till you come to the end: then stop.” Nowadays that very procedural approach is less common in PHP, so this article takes a look at some of the basic object oriented features available in the language and shows some examples of using them with code examples.
Confident Coding: San Francisco
Personally I’ll be speaking about git and also about SSH and things that are not FTP, and anything else I get asked about on the day. The variety of skills in the speaker lineup of this event, organised by the lovely @estellevw, is frankly imporessive and I can’t wait to meet all the speakers and attendees! I’m not often in the US at all (I’m a very reluctant traveller and I’m actually there for ZendCon the week after) so this is a rare opportunity for me.
The event is open to everyone, but if you don’t identify as female and you want to attend, please bring with you someone who does – and either way you can make use of my discount code! Simply buy a ticket, entering LORNA20 at the checkout for 20% off the ticket price.
Hope to see you there :)
PHPNW Tutorial Day
- git
- apache virtual hosts
- api documentation
- static analysis tools
- profiling with xhprof
- deployment with phing
Somewhere along the line my attendees were unexpectedly efficient (or I was impatient) and we ended up ahead of my planned schedule, so I asked if anyone had any questions to fill the final hour or so. Continue reading
Git Cheat Sheet
Checkout/Clone
In git, you don’t checkout code, you clone a repository. You end up with a local repository on your filesystem, which behaves as both the repo and as your working copy. In git, you always clone the whole repo, not a subdirectory, and the metadata is all stored at the top level, in a directory called .git
.
When you are ready to clone the repo, create the directory to store it in and change into it. Then type:
git clone [url]
Here’s an example, showing a clone of my private joind.in repo on github. Continue reading