Zend Database Expression for Mysql PASSWORD()
$db = Zend_Db_Table::getDefaultAdapter(); new Zend_Db_Expr($db->quoteInto(‘PASSWORD(?)’, $data[‘password’]))
$db = Zend_Db_Table::getDefaultAdapter(); new Zend_Db_Expr($db->quoteInto(‘PASSWORD(?)’, $data[‘password’]))
Disable Layout and View Zend Often when actions are used in controllers that do some work but do not actually […]
Tutorial on how to check if you are running 64 bit or 32 bit on Linux: uname –m i686 means […]
Tutorial on how to Export to a Quoted CSV This guide is tailored towards Microsoft Office 2007, but with a […]
To Copy a single table in a Schema into another existing Schema CREATE TABLE myschema.mytbl LIKE myschema2.mytbl; INSERT INTO myschema.mytbl […]
A list of the 12 scariest stadiums in world football. The main factors: loudness of fans violence of fans flare […]
To Redirect: /controllers/yourcontroller::youAction() $this->_redirect(‘/path/to/place’); To Show Profiler in a layout /layouts/yourlayout.phtml $this->addScriptpath(APPLICATION_PATH . ‘/profiler/views/scripts’); echo $this->render(‘util/profiler.phtml’); /application/profiler/views/scripts/util/profiler.phtml Database Profiling Report […]
Check php version (command line): php -i unzip a .tar: tar -xvf file.tar unzip a .tar.gz: tar -xzvf file.tar.gz Virtual […]
Create New MySQl User with Privileges GRANT ALL PRIVILEGES ON dbTest.* To ‘user’@’hostname’ IDENTIFIED BY ‘password’; So for example: Log […]