hakre on wordpress
Hakre's devlog, thoughts and rants on wordpress on wordpress.com. And webdesign related. And web development related. My weapons of choice are Netscape 2.01, HTML, CSS, PHP and the Gif Construction Kit.
You can find out more on my codex page.-
Defective by Design - HTML5 is so awesome you can screw it now. Congratulations. Tell W3C: We don't want the Hollyweb! - Get educated and spread the word! -
Issue 2.1 is out! (; as print version so far, not yet on the website.) Take a look at conferences and events to get as well all back issues of Libre Graphics magazine with a discount or just order online. Wordpress Licensing – hakre on wordpress
- GPL: This Deserves a Special Mention, II
- b2/cafelog is GPL
- WordPress Changes GPL License Text Again
- Akismet Introduces GPL Version to WordPress (Updated 3x)
- Kses, GPL, Copyright, Licensing and Disclaimer
- WordPress, Copyright, Hello Dolly Lyrics, the GNU GPL and I
- WordPress Licensing Issues – Plugins are GPL, Right?
- WordPress Licensing Issues – On Showing License
- Relicensing of IXR – The Incutio XML-RPC Library (Day 15)
- WordPress Licensing Issues – NOOP (Day 8)
Wordpress Questions (and Answers)
- An error has occurred; the feed is probably down. Try again later.
Linked
- Using Linux Screen for Session Management
- DejaVu fonts
- They killed the Failwhale
- The JavaScript Trap
- Image_Graph
- XHProf PHP Profiling Tool
- Looking back on Selling Gravatar to Automattic
- TkSQLite
- The Law of Leaky Abstractions
- SJ Hook Profiler
- RIPS – A static source code analyser for vulnerabilities in PHP scripts
Archives
- March 2025 (1)
- August 2023 (2)
- April 2022 (1)
- November 2019 (1)
- October 2019 (2)
- April 2019 (3)
- February 2019 (1)
- December 2018 (1)
- October 2017 (1)
- September 2017 (1)
- August 2017 (1)
- March 2017 (1)
- January 2016 (1)
- November 2015 (1)
- March 2015 (2)
- February 2015 (2)
- January 2015 (1)
- June 2014 (2)
- May 2014 (1)
- December 2013 (2)
- November 2013 (1)
- October 2013 (1)
- September 2013 (3)
- August 2013 (3)
- July 2013 (6)
- June 2013 (1)
- May 2013 (1)
- April 2013 (2)
- March 2013 (2)
- February 2013 (12)
- January 2013 (5)
- December 2012 (2)
- November 2012 (1)
- October 2012 (1)
- September 2012 (2)
- August 2012 (7)
- July 2012 (8)
- June 2012 (8)
- May 2012 (10)
- April 2012 (11)
- March 2012 (7)
- February 2012 (3)
- January 2012 (8)
- December 2011 (6)
- November 2011 (1)
- October 2011 (7)
- September 2011 (3)
- August 2011 (4)
- July 2011 (7)
- June 2011 (7)
- May 2011 (6)
- April 2011 (7)
- March 2011 (16)
- February 2011 (29)
- January 2011 (11)
- December 2010 (10)
- November 2010 (11)
- October 2010 (9)
- September 2010 (15)
- August 2010 (23)
- July 2010 (9)
- June 2010 (33)
- May 2010 (26)
- April 2010 (20)
- March 2010 (8)
- February 2010 (11)
- January 2010 (26)
Wordpress
Ex-Blogroll
Categories
- Code Smells (11)
- HTML/CSS Code Smells (3)
- PHP Code Smells (5)
- Developing (21)
- Licensing (3)
- Hacking The Core (70)
- Wordpress Licensing (17)
- Hakre's Tips (95)
- Patched (6)
- Persona (5)
- Plugin Plugout (28)
- Enhancing Feeds (7)
- Theme-A-Licious (2)
- Pressed (353)
- Libre Graphics (1)
- Linked (149)
- Bugs and Features (19)
- Hashcat sightings (1)
- Video (1)
- Number of the Day (3)
- PHP Development (60)
- PHP Library (7)
- Professional Webdevelopers At Work (2)
- Reports (26)
- Save the Date (8)
- Wordpress Releases (6)
- Surviving the Internet (30)
- Tools (86)
- Gates and Fences (3)
- PHP Development (35)
- PHP Frameworks (10)
- PHP Standards (2)
- PHP Template Language (5)
- Scripts (6)
- Webtools (5)
- WordPress Support (9)
- Uncategorized (50)
- Code Smells (11)
Music
Category Archives: PHP Development
The thin line between an Invocation
PHP language changes and until we understand them. Did this caught your attention? The release of PHP 8.1 is quite some days ago, like November the year before last year, and when I first learned about first class callable syntax … Continue reading
Posted in PHP Development, Pressed, The Know Your Language Department, Uncategorized
Tagged PHP, PHP-8, PHP-8.1
Leave a comment
Speedpills 4 Linting PHP Files in Parallel
Quite some time ago I’ve already written about linting PHP files in the shell / build. Even though parallel linting is fine, when the code-base is growing larger and larger, the build becomes slower and slower. A slow build sucks. … Continue reading
Posted in Hakre's Tips, PHP Development, PHP Development, Pressed, Scripts, Tools, Uncategorized
Tagged Build, Git, PHP, sed, Shell, xargs
1 Comment
Using Assertions with (Legacy) PHP Code
While it was not much advised to use assertions (the assert PHP language construct) prior to PHP 7 due to the fact that it actually eval’ed a string’ed code, these days are gone. This is probably a lesser known fact with … Continue reading
Posted in Developing, Hakre's Tips, PHP Development, PHP Development, Pressed, The Know Your Language Department, Tools
Tagged Assertion, Legacy Code, Legacy PHP Code, PHP, PHP 7, Phpuni, Testing, Unittests
Leave a comment
Lazy Loading in PHP Object Composition
When it comes to nicely performing PHP scripts (yes in PHP these are all scripts as PHP code is run-time) there is a nice addition since PHP 7 named the Null coalescing operator which plays very well with the basic nature … Continue reading
Posted in Hakre's Tips, PHP Development, PHP Development, Pressed, The Know Your Language Department, Tools
Tagged Operator, PHP 7
Leave a comment
History of the PHP date timezone settings warning
Now with the newborn elefant PHP 7 in the herd, there is a lift on the date timezone settings warning: it has just been removed. That means, it’s now that you need to take care in the server’s configuration that … Continue reading
Posted in Pressed, The Know Your Language Department
Tagged Date, datetime, PHP, PHP 7, Timezone
Leave a comment
Linting PHP Files in Parallel on Travis
With PHP 7 around the corner here is a small tip how you can at least lint the code in your project to be PHP 7 syntax compatible. That allows you to easier obtain forward-compatible PHP code with ease. So … Continue reading
Posted in Hakre's Tips, PHP Development, Pressed, Tools
Tagged Find, Grep, Linting, PHP, PHP 7, Syntax, Test, Travis, xargs
Leave a comment
The SimpleXMLElement Magic Wonder World in PHP
PHP’s Simplexml ships with a lot of magic to simplify access to an XML documents element and attribute node values. Some criticize this and suggest to use the DOM library instead. The DOM library on the other hand, even it … Continue reading
Posted in Developing, Hakre's Tips, PHP Development, Pressed, The Know Your Language Department, Uncategorized
Tagged DOMDocument, PHP, SimpleXML, SimpleXMLElement, XML
Leave a comment
Composer 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 to a test, this can … Continue reading
Posted in Developing, Hakre's Tips, PHP Development
Tagged Cache, Clear, Composer, David Neilsen, Igor Wiedler, PHP
5 Comments
PHP turtles – Turtles all the way down
Some nice line-up for the know your language department: PHP turtles – Turtles all the way down.
Posted in Linked, PHP Development, Pressed, The Know Your Language Department
Tagged PHP
Leave a comment
XPath 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 resulting expression is … Continue reading
Posted in Hakre's Tips, PHP Development, Pressed, Surviving the Internet
Tagged ASCIIZ, Injection, Null-Byte, PHP, PHP Security, XML, XPath, XPath Injection
Leave a comment
Mitigating 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 Attacks, a common attack form. Albeit all this, and … Continue reading
Posted in Hakre's Tips, PHP Development, Pressed, Surviving the Internet
Tagged DOM, DOMXPath, Injection, PHP, PHP Security, SimpleXML, XPath, XPath Injection
1 Comment
SimpleXML 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 some potential problems some workarounds have been showed. … Continue reading
Posted in Developing, PHP Development, PHP Development, Pressed, Tools
Tagged JSON, json_encode, PHP, SimpleXML, SimpleXMLElement, XML
4 Comments
SimpleXML 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. The explanations given there were intended … Continue reading
Posted in Developing, PHP Development, PHP Development, Pressed, Tools
Tagged JSON, json_encode, PHP, SimpleXML, SimpleXMLElement, XML
2 Comments
SimpleXML 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 I’ll … Continue reading
Posted in Developing, PHP Development, PHP Development, Pressed, Tools
Tagged JSON, json_encode, PHP, SimpleXML, SimpleXMLElement, XML
Leave a comment
The Greatest PHP Value
Just two days ago I asked a PHP-quiz-question in the chatroom on Stackoverflow, something along the lines: PHP: Which one is greatest? PHP has a comparison operator to compare if one value is greater than the other (>). Which one … Continue reading
Posted in Developing, PHP Development, Pressed, The Know Your Language Department
Tagged Array, Infinity, Object, Operator, PHP, Quiz
Leave a comment
Late Static Bindings in PHP Callbacks
No idea if this is ever useful, but just found this not documented in the PHP manual so far (and the Callbacks entry looks already chaotic so I don’t edit it right now): You can write callbacks of static class … Continue reading
SimpleXML Type Cheatsheet
A SimpleXMLElement can represent many different things, from an element, to a list of attributes or childelements. Sometimes it’s good to know how to find out, especially with the magic the extension comes with. The following is a table with … Continue reading
Posted in Hakre's Tips, PHP Development, Pressed, The Know Your Language Department
Tagged Attribute, Cheatsheet, DOM, DOMDocument, Element, Introspection, PHP, SimpleXML, SimpleXMLElement, XML
1 Comment
PHP Autoload Invalid Classname Injection
There are many ways to attack an application, many are working by injecting some malicious data hoping to trigger a deserved action in the end. Most of these are possible when input data is not properly sanitized. This can have … Continue reading
Posted in Features, Hakre's Tips, PHP Development, Pressed, The Know Your Language Department
Tagged Autoload, Autoloader, Classname, Injection, PHP, Regex
1 Comment
Debug with Xdebug on the Commandline with Phpstorm and Git Bash
Enable Phpstorm Xdebug listening: Press the listen button inside Phpstorm to actually listen: To disable Phpstorm Xdebug processing in Bash again: This (PHPSTORM) is the default Phpstorm IDE-Key. You don’t need to disable listening after the variable is unset. Should … Continue reading
Posted in Hakre's Tips, PHP Development, Pressed
Tagged CLI, Git Bash, PHPStorm, sh, Xdebug
1 Comment
Getting N Random Elements out of an Iterator – RandomIterator
Considering there is an Iterator or Traversable with an unknown number of elements, I wondered if it is possible to get one or more random iterations out of it.
Posted in Developing, Hakre's Tips, PHP Development, Pressed
Tagged Iterator, Iterators, PHP, Random, RandomIterator, Reservoir Sampling, SPL
Leave a comment