Opening the factory doors: An MVC web app design from scratch. Ok, so as I’ve already mentioned, I’m writing a series of tutorials where I build an MVC web app entirely from scratch in the Yii Framework. This post outlines what the project is, outlines the web app design and some approaches I will be taking. (more…)
Archives For July 2013
Check out the video for an overview of the wordpress cron system. Here’s some background information:
Sometimes on a wordpress site you need to run a job at regular intervals. Say, for example, you store draft customer details when people are browsing your site; and you want to remove them if they haven’t completed their registration after a couple of days. Now, there is a good system in Unix OSes called cron that will do this, but it’s not always suitable… (more…)
I’ve been doing some work with random strings lately and, in an effort to improve the speed of my code, did some testing. I discovered an interesting alternative to php rand… (more…)
The 24 PHP Tutorial book
Hey just wanted to let everyone know that my PHP tutorial book for utter PHP newbies is out now on the Kindle store. It covers a decent spread of material, introducing lots of core PHP concepts and techniques. No previous experience in web development is assumed, though some knowledge of HTML will help. Golearnphp.com usually overs more advanced PHP topics, but I was advised that we need some introductory material to refer people to, so here it is. For my more technical readers: don’t worry, there are some way more advanced technical things in the pipeline! Get it here.
Availability on other platforms
The 24 hour PHP tutorial book is currently exclusive to Kindle Select, but will be more widely available in early-mid October 2013. At this stage it will likely be published on iBooks, Smashwords, and Scribd. If you’d like to be notified of updates, join the mailing list.
I’ve already produced a first steps tutorial for total PHP newbies, and now I’m dying to get stuck into something much bigger and more challenging. So that’s why I’m introducing today this new project: A Yii Framework Tutorial. This tutorial is going to be massive and exhaustive. I’m going to build a full site in Yii Framework from nothing, and document the whole process.
When the main body of the development is complete it will be an actual PHP web app that you can download and install for yourself. The intention is to then implement the app at some hosting, make it live and populate it, and try to get people using it. This post-development stage is not strictly speaking part of PHP development, but it is critical to the success of any site and so may be of use to you. In any case it should make for a fun experiment! (more…)
The problem: measuring PHP performance
It’s not always easy to tell why your PHP is not running well. Sometimes you need to spend some time hunting through your code examining how well it is performing at various places, eliminating bottlenecks as you go. You probably also want debugging info to be visible and easy to read. Here’s how I’ve been doing it lately, using a new php class called GLPTimer… (more…)