Allowed memory size of 8388608 bytes exhausted

When trying to automatically upgrade a blog from 2.8.1 to 2.8.2 it wouldn’t work and I saw an error message similar to this: Allowed memory size of 33554432 bytes exhausted. It seems the error is pretty common and I found the solutions on the WordPress.org support forums. In my case it was an active plugin …

How to convert/encode files to FLV using FFMPEG & PHP

How to convert/encode files to FLV using FFMPEG & PHP So, as I’ve written in an earlier article on how to install FFMPEG on your server, while there are those who probably use a “YouTube Clone” script, there might be those who want to create their own using FFMPEG & PHP. FLV is the most widely …

Php, MySql, .htaccess: friendly urls

Php, MySql, .htaccess: friendly urls There are a lot of tutorials that show how to change an address like: www.mysite.com/products.php?product_id=1234 into others like: www.mysite.com/products/1234 www.mysite.com/products/1234.html In this article I’d like to go one step forward and to create something like: www.mysite.com/easy-to-remember-product-name www.mysite.com/easy-to-remember-product-name.html

Remove text between two HTML comments.

Remove text between two HTML comments. Well, one way is to make use of assertions. By using look behind and look ahead assertions (they are not included in any matches), you can grab what is not part of them: $tmp_tpl = preg_replace(‘#(?<=<!–COMMENTBOX–>).+(?=<!–ENDCOMMENTBOX–>)#’, ”, $tmp_tpl); Of course, to test this out, when you say echo $tmp_tpl, …

PHP and XML Sitting in a Tree

There are scores of ways to store, work with, and retrieve data on the web. Simple databases, relational databases, XML, even custom flat files can hold our product catalogs, user information, and other repositories of important stuff that we want to share with the world. There are some logical ways to work with different kinds of …