PHP: XPath on HTML and XHTML
Christan Weiske has published a nice summarizing article with the same title. It contains some detailed information I haven’t found so far on the web so worth the link: PHP: XPath on HTML and XHTML. It...
View ArticleSimpleXML and JSON Encode in PHP – Part I
With SimpleXMLElement it is often easy and looks like a very quick way to turn some XML into JSON. But not everything in PHP that has an easy interface works out of the box. In this three part series...
View ArticleSimpleXML and JSON Encode in PHP – Part II
In the previous post (Part I) I was giving a little overview for common woes turning a SimpleXMLElement into JSON when XML structural information is available that JSON is not capable to encode easily....
View ArticleSimpleXML and JSON Encode in PHP – Part III and End
The previous two parts (Part I; Part II) did outline PHP’s standard behaviour when JSON encoding a SimpleXMLElement with json_encode(). As outlined this does not always fits the encoding needs and for...
View ArticleMitigating XPath Injection Attacks in PHP
PHP has two libxml based extensions that allow to execute XPath 1.0 expressions: DOM (by the DOMXPath class) and SimpleXML (with its xpath() method). Both extensions are prone to XPath Injection...
View ArticleThe Negative Influence of WordPress on PHP
The current The TIOBE Programming Community Index for July 2013 shows an increase for PHP, gaining grounds fast and as an ongoing trend over the last year: If compared to January 2013, PHP is the...
View ArticleYour Guide to Composer in WordPress
Your Guide to Composer in WordPress and there is WordPress Packagist. I only knew about Composer Installers (incl. WordPress ones) so far. Tagged: Composer, PHP, Wordpress
View ArticleThe Sky. The Universe. The Missing Unit Tests
Out there in the Universe. Now comparisons get Epic Pictures when it comes to WordPress and Unit Tests: Beta Sagittae. via The Loop. Reminded me of Development By The Numbers – Slides (May 2013; by...
View ArticleGreeting, Greetings and the GreetingFactory
Just stumbled over: If you ask Is this correct object oriented programing in php? and then get an answer from Gordon, well, see for yourself. (via) Tagged: OOP, PHP
View ArticleFree The Cuban Five! 12. September 2013
Especially for our German speaking visitors: Unterstützen und Verbreiten – spitzenaktion.de. And for our US-visitors: Miami, FL, Sept. 8 | Washington, DC, Sept. 12 (White House) | Washington, DC, Sep...
View ArticleIrcmaxell’s Rambling On Internals
Ircmaxell’s Rambling On Internals raises a very important point about the use of RFCs in the PHP community and the problem they have been introduced as a tool to only negotiate – not solve – the...
View Articlepluginmirror.com – GitHub mirrors of every plugin in the WordPress.org plugin...
Just a little follow up to Your Guide to Composer in WordPress as I was stumbling over while surfing (and equally short just for the log): Bryan Petty (tierra) was so kind to mirror the WordPress...
View ArticleProfessional Webdevelopers At Work – Yahoo Mail Endless Redirect Demonstration
So familiar with these 1996 Web-Technologies but not having the time to care in these rushing 201x days as this two minute documentary of an endless redirect-chain shows. Thanks to random URL...
View ArticleXPath Null Byte Injection in PHP
Back in July this year, in Mitigating XPath Injection Attacks in PHP I was writing about how to properly quote a string in PHP’s Xpath 1.0. The code presented there was based on the assumption that the...
View ArticlePHP turtles – Turtles all the way down
Some nice line-up for the know your language department: PHP turtles – Turtles all the way down. Tagged: PHP
View ArticleComposer Clear Cache
It’s one of the best kept secrets of popular PHP dependency manager Composer: How to flush composers cache. You normally don’t need it, however if you create some composer.json and you want to put it...
View ArticleCommandline Source Fixes Foo
From time to time I need to cleanup source trees. Today I needed to do that again, here are some command liners to get some work done. If you’re on Windows, all you need to do to get these running is...
View ArticleDownload NextGen Gallery WordPress Gallery with Wget
For a gallery download with Wget made by NextGen Gallery (at least this is what I read from then nggpage=2 query string), I had success with: wget -nc -nd -A '*.jpg' -R 'thumbs_*,index.html*' \ -I...
View Article