Screenqueri.es is a relatively new site, currently in beta, for testing how a Web site will look on various mobile devices. It’s an absolute snap to use: just enter the URL of your (or any) site, and Screenqueri.es will load a preview of that site, on a grid of pixels, as it would be loaded by a mobile device.
Continue Reading...In an earlier post in this series, I covered how you create an HTML form for securely handling payments via Stripe. In the previous post, I walked through the JavaScript that goes with that form. As explained in that post, thanks to the Stripe.js library, the proper HTML, and a bit of JavaScript, you can easily and securely handle payments on your site without getting mired in the PCI compliance muck. The secret is the Stripe.js library: it sends the customer’s payment information from the client to Stripe’s server and returns a token that Stripe associated with that payment information. Then, when the form is submitted, the token can be used by the PHP on your site to actually process the payment. The customer’s payment information, however, never touches your server. You get paid and the customer is protected.
In this post, I’ll walk through the necessary PHP code that actually processes the payment request. Note that this article assumes that you have read the previous articles and are comfortable with PHP.
Continue Reading...So it’s 2013! I thought an update on “The Yii Book” would be a good way to start off the year. As you may know, I am behind schedule on the book, but this is apparently how I write books (i.e., always behind schedule). Not that it makes it right. Anyway…
Continue Reading...I started off 2012 with my non-resolutions list, so it only seems fitting that I end by looking back on my year (with respect to work). 2012 was a very interesting year for me, with many developments that I expect will continue paying off in 2013. Financially, 2012 was better than 2011, although it was not my highest grossing year by any means. But the amount of money you make is only one measure of success.
Continue Reading...An article, titled “Social Media Authentication and Authorization Using PHP“, which I recently wrote for Peachpit Press has been posted online. In the article, I explain how to use the HybridAuth library to perform authentication and authorization against common social media sites. I specifically demonstrate the code for interacting with Twitter, but the library works for other sites too.
This is the fourth article I wrote in support of my “PHP Advanced and Object-Oriented Programming” book.