PHP 5.4 Built In Webserver
Building A RESTful PHP Server: Routing the Request
Building A RESTful PHP Server: Understanding the Request
In the first part of this (probably) 3-part series, we’ll begin with the basics. It might seem boring, but the most important thing to get right with REST is parsing all the various elements of the HTTP request and responding accordingly. I’ve put in code samples from from a small-scale toy project I created to make me think about the steps involved (should I put the code somewhere so you can see it? Let me know). Without further ado, let’s dive in and begin by sending all requests through one bootstrap script: Continue reading
SQL Joins with On or Using
USING
and ON
. Continue reading Which Basket Should A Developer Put Their Eggs In?
The question is: as a developer, how do you know which of these products (I get about one tempting enquiry a month from what sounds like a real person who isn’t building a social network) is a good bet?
Using lrnja.net Custom URL Shortener with Bit.ly
- First: register your domain
- Log in to your registrar’s control panel and add an A record*
- That’s it! In about 24 hours, you’ll be able to shorten with your domain
* or a CNAME if you want to use a subdomain of an existing domain.
Bit.ly has excellent instructions here: lrnja.net/bitlydomain
The Tree Command
tree
command to illustrate the file and directory layout of the project. I love this little command and use it frequently, but it isn’t very well known so here’s a quick example. Continue reading Tracking Your Domain with Bit.ly
Inner vs Outer Joins on a Many-To-Many Relationship
Continue reading