GNU/Linux Inside

Tag Archives: PHP

PHP Performance: Array Iteration 0

In PHP, arrays are used for virtually everything (I’ll spare my rant on that), therefore it’s likely that you’re going to use them abundantly in your scripts. The issue we’re going to be focusing on here isn’t with the arrays themselves – it’s the simple fact that you’re probably going to have to iterate over [...]

False Freedom in Wordpress Themes 0

I’ve always had one major issue with some of the “free” Wordpress themes out there – the encryption of footer data. I’ve seen countless themes licensed under the GNU GPL that violate the very principles for which it exists.
Someone took the time to make their theme available under the GPL – that’s an excellent, noble [...]

PHP Extension Writing: Namespaces 0

I’m fairly new to PHP extension writing. I’ve just gotten into it in order to optimize some existing PHP 5.3 code for my WebKernel project. However, there was one fundamental problem that I could not find the solution to anywhere online – how do you define a function within a namespace!? WebKernel used namespaces extensively, [...]

PHP6 Snapshot – Namespace Separator Patch Applied 0

In my MyCustomBB Blog a while back, I discussed the PHP’s decision to change the namespace separator to a backslash. Until recently, this patch hadn’t yet been applied. Therefore, I continued developing my code using the old static operator (::).
Well, I recently installed the new PHP 6 snapshot from http://snaps.php.net/ and found that my code [...]

PHP Stream Wrapper Irritation 0

Well; after several wasted hours looking into what I believed to be a bug within the PHP core, I have figured it out. I want to post this in the hope that you, the reader, do not have to go through the stress I went through in attempting to resolve this issue (and almost restorting [...]