HOME

Articles

Defining Chaos In Order

Defining Chaos In Order I've been cursing at this quite often. Since this is a tech-related blog with code snippets, command line arguments, ... running it on wordpress means that it always results in having characters replaced by the WordPress default formatting. In the...

Introducing Codeception: BDD testing framework

Introducing Codeception: BDD testing framework Codeception allows writing tests with PHP in descriptional way. Each test is written from a user's perspective in pure PHP in a single readable style. Each test can be executed either as a functional test for frameworks Symfony2, Zend, symfony, or...

35 Interesting And Useful WP Plugins Released In The Last Five Months

35 Interesting And Useful WP Plugins Released In The Last Five Months I’ve been wanting to publish an article like this since November but I waited a little bit for developers to launch other new interesting and useful WordPress plugins besides the ones that I gathered till then. There are a few types of plugins...

Create your own framework... on top of the Symfony2 Components (part 1)

Create your own framework... on top of the Symfony2 Components (part 1) Symfony2 is a reusable set of standalone, decoupled, and cohesive PHP components that solve common web development problems.

Scripts

Helper to generate a random key

Generate a password or a random key (I use it to confirm newsletter unsubscribe) <?php //use $row->clau = $this->_helper->getHelper('Password')->generate(10, 20); class Helper_Password extends...

Redirect depending on the language

REDIRECT DEPENDING ON THE LANGUAGE We choose the best language between possible languages and between languages that the browser accepts Usage: $accepted = $this->_helper->getHelper('Language')->accepted(); $optimal =...

Search with Zend_Lucene and Doctrine

SEARCH WITH ZEND_LUCENE AND DOCTRINE Extends php doctrine record for search with Zend_Lucene Usage: 1.- Replace base model: Ex: replace abstract class BaseBlacklisted extends Doctrine_Record with abstract class BaseBlacklisted extends...

Obfuscate php code

OBFUSCATE PHP CODE A class to obfuscate php code:   if (!defined('T_ML_COMMENT')) { define('T_ML_COMMENT', T_COMMENT); } else { define('T_DOC_COMMENT', T_ML_COMMENT); } class ofusca { var $target =...
RSS RSS RSS