PHP CLI script – show errors
If you are struggling with a PHP CLI script and the errors are not showing: php -d display_errors <script_filename.php>
A bunch of ramblings about PHP programming, JQuery, MySQL and other 'stuff'
If you are struggling with a PHP CLI script and the errors are not showing: php -d display_errors <script_filename.php>
I always forget the little bit about error reporting, so here is a step by step guide to getting Xdebug…
PEAR (PHP Extension and Application Repository) is a bunch of extensions you can install on your server to uitilise clever…
I was just playing around with PHP’s ability to create compressed files, and I had a problem. My ZIP file…
Was getting the above error in my Doctrine project, turned out I had used a single quote in the ORM…
Have had some serious problems getting this working, but after a 4 hour head bashing session, we’ve cracked it. CREATE…
When creating a Zend Framework site, its always best to keep the Zend library as an external source. This way…
Think: “What am I testing?” 1) Set-up Instantiate your class Look for dependencies, are there any that need mocking? 2)…
To pass data from your controller, to a Zend_Form, you can utilise the config parameters: $this->view->form = new Contact_Edit_Form(array('contactName' =>…
When using a CLI script with options, I like to use the Zend_Console. If my options are as follows: $console…