GEEK: Postalicious, dreamhost, and the case of the stripos function


If you’re using the Postalicious plugin with PHP4.x, you will get the following error:

To fix it, change the following line from this:

if(stripos($neop_del_tagfilter,$t) !== FALSE) {

to this:

if(strpos($neop_del_tagfilter,$t) !== FALSE) {

…and it should work. stripos apparently only works with PHP 5.x, and Dreamhost, my hosting company is using PHP 4.x.

Note that strpos(), and its case-insensitive sibling stripos(), returns the index of the first occurrence of a substring within a string. The function appears to be used in the code that handles tags, so tag handling may be affected by this change.

Post a Comment

You must be logged in to post a comment.