Brutally Roll Your Own Backend – Part 6

lamp-stack (1)

Brutally Roll Your Own is a video series on building a PUSH enabled mobile application from scratch, using a Linux, Apache, MySQL, PHP (LAMP) server for the back end, and Delphi for the mobile app. In Part-6 we break from the promised Delphi coding, to add more functionality to our php end-point class.

Sign up with linode here

Sign up for Linode by clicking here!
If you select linode to host your back end, as I suggest in part 2 of this video series, please consider signing up through my referral link above. I host my servers (including this site) on linode, and this will help pay the bills! If you already have an account, you can enter this referral code: fb41cc68526abce4ffa14bfd797d5c4cc684f192  Your support is appreciated!

[Listing of all parts]

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmail

3 Responses

  1. Do we loose multiple filter criteria by the refactoring at around 52:20?

    • I should really have explained that more clearly.
      You can still use multiple filters, it’s just that they’re all named ‘filter’ (rather than filter0, filter1..etc).
      The HTTP protocol does not prevent duplicate names on GET/POST variables, so you can add as many as you wish with the name of ‘filter’.

    • Well there is egg on my face today. While recording a much later part (18 or 19), for the first time our code must use multiple filters and you are right, they are broken. I was not entirely wrong. The HTTP protocol does not inhibit duplicate names, and php will let you access the data. However, when php parses those variables into a key=>value array, it appears that it does insist on unique keys. Corrected in the latest code.

Leave a Reply