Posts marked with “php”

Security Corner: Crossing the Streams

by · October 2, 2019

0
 

While not commonly seen in the wild, PHP exposes powerful interfaces empowering applications to manipulate large streams of data directly. Both stream wrappers and filters allow developers to interact with objects too large to fit in memory or which might be ephemeral in nature. Combining these stream interfaces opens up even more possibilities for the […]

 

Puphpeteer, 25 Years of PHP, and Joe Ferguson

by · September 24, 2019

0
 

In Episode 24 Eric, John, and Oscar discuss some of the articles in the September 2019 issue “Master of Puppets”. Topics History of PHP, celebrating “25 Years of PHP”, and the Impact Awards at php[world] Using Puphpeteer to automate Chromium browser tasks and testing. Code style, and refactoring legacy code. Code editors from VIM (and […]

 

The Workshop: Introduction to PDF Generation

by · September 12, 2019

0
 

Despite the promise of a “paperless” office, we still need to create documents that print and render nearly-identically across devices and operating systems. PDFs have filled this niche nicely for end-users, but if you need to generate PDFs with PHP programmatically, the options are overwhelming. How do you choose? In this series, we’ll investigate the solutions at our disposal and the pros and cons of each.

 

finally{}: 25 Years of PHP

by · August 2, 2019

0
 

PHP was released in the fall of 1994, making 2019 the 25th anniversary of PHP! We’ve certainly come a long way from the early days of the web. I’m not sure how many people reading this were around back then, but I was. Things were not pretty back then.

 

Internal Apparatus: Generated Singletons

by ·

0
 

This month we study the Singleton Design Pattern, but with a twist. We start with a correct implementation but get it wrong by refactoring. We’ll examine the PHP generated code, each step of the way, to understand what went wrong. We’ll observe at least two reasons the Singleton Design Pattern is now considered an anti-pattern. We’re preparing to learn useful variations next month by seeing precisely how it works under the hood.

 

finally{}: Semver, PHP and WordPress

by · July 2, 2019

0
 

Recently there was a big announcement that with WordPress 5.2, that they would be updating the minimum required version of PHP to 5.6. That’s a huge deal, but as can be expected, a vocal minority of the PHP community immediately erupted in anger

 

Internal Apparatus: A Walk Through the Generated Code

by ·

0
 

The PHP compiler/interpreter reads through our PHP code and produces an intermediate form. PHP’s virtual machine then interprets this intermediate form. PHP’s “generated code” feature allows us to walk through this intermediate form, better understanding exactly what PHP does with the software we write. We’ll begin with a three line example, observing the generated-code changes […]

 

Serverless PHP, Array Functions, and Data Structures with Chris Tankersley

by · June 17, 2019

0
 

Eric, John, and Oscar are back post-php[tek] to discuss the June 2019 issue.

 

Internal Apparatus: Memoization

by · June 5, 2019

0
 

Memoization is another form of memory use. I see it regularly used for improving application performance, but it’s also used to improve compiler performance. To learn the concept, we’ll use a PHP project with database tables, then look at other ways to use the technique.

 

Education Station: Data Structures, Part Two

by ·

0
 

Last month I talked about how, despite PHP arrays being one of the nicest things about the language, there were times where real data structures could help. There were various ways to use arrays as more “traditional” data structures, as well as the options provided by the Standard PHP Library, or SPL. If you can […]