James McDonald

Access

Blog History

Testing Session TimeOut with CakePHP

By default CakePHP uses the session timeout value in php.ini But sometimes you might want to specify a very short Session timeout for testing your code To do that you open Config/core.php and add a value to the "Session" Configure::write area...

read more

CakePHP with TCPDF

This is brilliant:- http://www.martin-schenk.es/en/cakephp-2-pdf-with-tcpdf/ in View/Layout/pdf/pdf.ctp <?php header("Content-type: application/pdf"); echo $content_for_layout; But with google chrome using the $pdf->Output('filename.pdf', 'I') option you get the...

read more

CakePHP in a subdirectory NginX

This is how I setup cakephp so I can have multiple apps in subdirectories with a shared cakephp instance. Under NGinx I setup my webroot folder as follows /var/www/html <== webroot everything served from here /var/www/cakephp-2.5.4 <== cakephp lib folder here...

read more

Vultr VPS Pricing

I've used Rackspace & Digital Ocean but I've only just became aware of https://www.vultr.com/ I only spend about $20USD a month on my 2GB RAM 40GB SSD VPS and I think Rackspace was around the $24 dollar mark. But Vultr is charging $15.00 a month for the same...

read more

DKIM – A simple reason why dkim=fail

I have been looking at enabling Domain Keys Identified Mail using opendkim and have discovered a lot of very good howto's just by Googling But I just thought I would list a configuration mistake I made. When you create a domain key using the opendkim-genkey command if...

read more