February 27, 2014

Regular Expressions

Regular Expressions Regular Expressions

February 21, 2014

WordPress Plugin – Injection Guard

Injection Guard

February 12, 2014

PHP Helper Function: get_function_static()

PHP Helper Function: get_function_static() Description: This function returns the name of calling function. You can specify the $index param to retrieve nth level of calling functions. function get_function_static($bt, $index=0) { if (isset($bt[$index][‘function’])) return $bt[$index][‘function’]; else return false; } Usage $bt = debug_backtrace(); $parent_function = $this->get_function_static($bt, 1);

February 1, 2014

Severity: 4096, Object of class stdClass could not be converted to string

Severity: 4096, Object of class stdClass could not be converted to string Error Description: A PHP Error was encountered Severity: 4096 Message: Object of class stdClass could not be converted to string Filename: libraries/Parser.php Line Number: 101 Solution: if (is_array($val)) { $template = $this->_parse_pair($key, $val, $template); } elseif(is_object($val)){ $val = (array)$val; $template = $this->_parse_pair($key, $val, […]

WordPress Widget – RSS Feed Widget

RSS Feed Widget