Posts Tagged "PHP"

PHP Wants To Be Your Web Language Of The Future – Part 1 – Generators

This is part 1 of a 6 part series looking at the some of the wonderful features of PHP 5.5 and why it might remain a dominate web language for the future. This series was originally written for the Software Developer's Journal. Back in the early days of PHP the language was very different than it is today. While classes were available, PHP itself was very fragmented and felt more like ...

Tricks for Getting Around the ‘XMLHttpRequest Cannot Load’ Security Limitation in JavaScript

Some number of years ago web browser developers came up with the idea of allowing JavaScript to pull data from other sites into a web page on-the-fly. That day AJAX was born! Short for Asynchronous JavaScript and XML, this technology provided a mechanism for web pages to change their content without requiring the whole page to be refreshed. It was a great idea and has revolutionized some of the way ...

Book Review: PHP 5 in Practice

PHP 5 in Practice is a PHP recipe book from Elliott White III and Jonathan D. Eisenhamer. Its most recent printing was in 2007 and is part of the "Developer's Library" series from Sams Publishing. At 456 pages in length, this book is a bit shorter than some of the other books I have reviewed over the past several months. I have become a big fan of the Developer's Library ...

The Basics of Passing Values From JavaScript to PHP and Back

One of the common questions I often run into from new programmers to JavaScript or PHP is how to pass values back and forth between the two. The quagmire is that JavaScript is a client side language (most of the time) and PHP is a server-side language. Once you know how the process works when someone submits some data on the front end, and how it is manipulated and returned ...

My Love / Hate Relationship with PHP Traits

Anyone who knows me knows that I am a bit of a stickler when it comes to traditional software design principles. I do believe they lead to outstanding software products when they are followed correctly. This isn't to say I am not flexible when it comes to new ideas to improve traditional rules. When I saw the introduction of PHP traits in 5.4.0 I was eager to learn all about ...

Creating the Sense of Time in PHP Games

One common obstacle facing many first-time PHP game developers is the concept of how time passes in their web-based game. With desktop / mobile applications, time can continuously run via a timer mechanism because it is always running on the device. PHP works in the disconnected world of the Internet. When a request comes into the server, it fires off the request to the PHP program for parsing, parses ...