Tag Archives: PHP

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 , , , , , , , , , | 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 , , , , , | 1 Comment

PHP Bug #63769 file:// protocol does not support percent-encoded characters

PHP: Bug #63769 file:// protocol does not support percent-encoded characters

Aside | Posted on by | Tagged , , , | Leave a comment

Assorted SPL Iterator Examples

This is an assorted list for three SPL iterator resources out there in the net. I’m sure there is more, so feel free to leave a comment I’m happy to add them. spl-examples (salathe) The idea is to have you … Continue reading

Posted in Hakre's Tips | Tagged , , , , , , | 4 Comments

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 , , , , , , | Leave a comment

Prepared Statements

In Programming With Anthony – Prepared Statements (by Anthony Ferrara; 12 Dec 2012) the author needs only two minutes and 17 seconds (Youtube Video) to explain *Prepared Statements*. Worth to watch. See as well the Playlist of Programming With Anthony … Continue reading

Posted in Hakre's Tips, Linked, PHP Development, Pressed, Surviving the Internet | Tagged , , , , , , , , , | Leave a comment

Using Catalogs for Validation with PHP’s DOMDocument and Libxml2

DOMDocument schema and DTD validation in PHP can make use of libxml2’s Catalog support feature. A catalog is basically a XML file which contains information where to obtain the DTD and XSD schema from local disk. That is mapping a … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 3 Comments

Web3tracer a XHProf derived PHP Profiler / Tracer

“web3tracer is a PHP profiler / tracer derived from XHProf; it is a PHP module written in C allowing you to profile php scripts performance with minimum overhead.” License: LGPL 3.0 Read On: Pinba – Realtime Monitoring and Statistics Server … Continue reading

Posted in Linked, PHP Development, Pressed, Tools | Tagged , , | Leave a comment

PHP frameworks are obsolete

PHP frameworks are obsolete; July 18th, 2012

Aside | Posted on by | Tagged , | 2 Comments

Thoughts on a Websites’ Environment

I needed to put an older site under git version control and I wanted to be able to at least semi-automatically publish that site to the webserver. This is an old project for very good friends. Time to put it … Continue reading

Posted in Pressed | Tagged , , , , , , , , , | Leave a comment

Historic PHP End Of Life Dates

This post is just for reference and probably useful for software archeology. It’s always hard to pick out the news links, so I just created my own listing ordered by date (which I might extend in the future, but this … Continue reading

Posted in Pressed, Reports | Tagged , , , , | 1 Comment

What PHP 5.5 might look like

What PHP 5.5 might look like (by Nikita Popov; 10 Jul 2012)

Aside | Posted on by | Tagged , , | Leave a comment

Where is your Vision Jeff?

In the The PHP Singularity no-one less than Jeff Atwood tried to put something on the Meta-Level I was yet not able to properly grasp. Some point he makes is clear to me, he does not want to do “Yet … Continue reading

Posted in Linked, PHP Development, Pressed, Reports, Save the Date | Tagged , , | 2 Comments

The true power of regular expressions

The true power of regular expressions is a very well written article by NikiC about PCRE (Perl Compatible Regular Expression) and formal language theory (the diverse types in the Chomsky hierarchy of languages). It’s really good to read and gives … Continue reading

Posted in Linked, Pressed | Tagged , , , , , | Leave a comment

PHP MVC with Tom Butler

In the PHP chat a link got passed around (see “Deploying MVC on the web” below) and I thought it’s worth to link the multiple MVC related articles by Tom Butler. He is one of those persons who actually leave … Continue reading

Posted in Linked, PHP Development, Pressed, The Know Your Language Department | Tagged , , , , | 1 Comment

The “Missing” Patterns of the PHP Manual

Gladly some pattern code has been removed from the PHP Manual. Not so gladly, it’s just gone, including user comments. The not so good part of the story is, that the two patterns that were given in the manual page … Continue reading

Posted in PHP Development, Pressed | Tagged , , , , , , , , , | 3 Comments

The Daily Mistake: Not to Proxy Remote Services

“Just gimme a min, I glue that HTTP based remote service in.” – Whether the standard file_get_contents + Json *bam* or complete SOAP, a developer should have the time to wrap each (remote) data-source inside it’s own interface that is … Continue reading

Posted in Code Smells, PHP Code Smells, PHP Development, Pressed, Surviving the Internet | Tagged , , , , , , , , , , , | 3 Comments

Hidden Features of PHP – Ilia Alshanetsky

Ilia put the slides of his talk on 06 Jun 2012 in Toronto named “Hidden Features of PHP” online. He lists features, functions and extensions he thinks are hidden gems and shows examples of them. Slides are available at http://ilia.wsContinue reading

Posted in Linked, PHP Development, PHP Development, Pressed, Tools | Tagged , , , , , , , , , | Leave a comment

#20801 Deprecating PHP4-style constructors gracefully

WordPress: #20801 Deprecating PHP4-style constructors gracefully

Aside | Posted on by | Tagged , , , , | Leave a comment

WI-11524 Apply Patch from Clipboard

PHPStorm: WI-11524 Apply Patch from Clipboard

Aside | Posted on by | Tagged , , , | Leave a comment