Blogs about PHP

Getting Laravel Homestead to work with larger file uploads

Published on the 12th January, 2015

I've been working on a Laravel project which uses relatively large file uploads (about 30MB - 120MB). My development environment is Laravel Homestead - a great, pre-packaged Vagrant box for Laravel development. If you haven't heard of this I highly recommend you check it out - it's a great way to get up and running with Laravel, but it doesn't seem to play well for larger file uploads through forms (over about 5MB). My forms were either hanging or returning an nginx 'too large' error. Here are ...

Read more...
Divider

CodeIgniter Math CAPTCHA library, with multi-language plain text questions

Published on the 9th September, 2012

I've just released a new Math CAPTCHA Library for CodeIgniter, which can use plain text English words for numbers and random question phrases. It's also supports multiple languages (as it uses the core language library) and both addition and multiplication. It's still in the early stages so it needs to be put through its paces, but hopefully the CodeIgniter community will find this a nice alternative to the regular image CAPTCHA or simple math CAPTCHA. The library comes with 5 English languag...

Read more...
Divider

Check and clear cache in CodeIgniter with this Output extension

Published on the 22nd April, 2012

I decided to write an extension to the CodeIgniter core Output library as it's great for working with cache but doesn't contain any mechanisms for clearing or managing the cache. Installation Download the extension (details below) and extract the MY_Output.php file to your application/core folder. The core output library is loaded automatically so the extension should load automatically too. If you have changed the extension prefix to something other than MY_ in your config.php file you will n...

Read more...
Divider

Book Review: CodeIgniter 1.7 Professional Development by Adam Griffiths (Packt Publishing)

Published on the 15th August, 2010

CodeIgniter 1.7 Professional Development by Adam Griffiths is a great introduction to CodeIgniter - and the Model-View-Controller (MVC) design pattern in general - for intermediate and advanced PHP developers. I was asked to write a review of this book by Packt Publishing and this is now my third CodeIgniter specific book which I've studied. I’ve been working with CodeIgniter on several projects for over two years now so I’ve become quite familiar with the framework, but I’m always interes...

Read more...
Divider

Book review: CodeIgniter 1.7 by Jose Argudo Blanco and David Upton (Packt Publishing)

Published on the 27th February, 2010

The CodeIgniter framework is a secret weapon for many web developers as it allows you to quickly build complex web applications in a structured and organised way. I started using CodeIgniter over a year ago now so I've approached Packt's CodeIgniter 1.7 by Jose Argudo Blanco and David Upson as a way of expanding upon when I've already learnt from the user guide, forums and a book which I had previously read from Wrox called Professional CodeIgniter by Thomas Myer. This book not only introduces ...

Read more...
Divider

'PHP Nature' missing from 'Project Natures' in Aptana Studio 2.0

Published on the 13th January, 2010

For some reason, even though I have the PHP Development Tools (PDT) installed in Aptana Studio (2.0), I'm not able to select 'PHP nature' in the 'Project natures' of an imported project. I can start a new PHP Project which will have the 'PHP nature' selected as primary nature, but this doesn't even appear as an option in imported projects. The only two natures that are available are 'Remote Nature' and 'Web Nature'. The 'PHP nature' adds some really useful functions, like grouping my @todos into...

Read more...
Divider

CodeIgniter 1.7 by Jose Argudo Blanco and David Upton

Published on the 22nd December, 2009

I was recently sent a copy of a book from Packt Publishing to read and review called CodeIgniter 1.7 by Jose Argudo Blanco and David Upton. I'll be interested to see how the book compares to what I've learnt so far about CodeIgniter (>1 years experience CodeIgniter and >4 years php) and see what else it can offer, especially in terms of planning and managing application projects. The description on the Packt Publishing website says: This book explains how to work with CodeIgniter in a clear ...

Read more...
Divider

CodeIgniter 1.7.0 Released

Published on the 24th October, 2008

It's that wonderful time again! CodeIgniter 1.7.0 has been released, so it's time to upgrade. http://codeigniter.com/user_guide/installation/upgrade_170.html Upgrading looks fairly straight forward - here are some notable changes (http://codeigniter.com/user_guide/changelog.html): Sessions The Sessions class has been updated so that any custom data being saved gets stored to the database rather than the session cookie (assuming you are using a database to store session data), permitting much...

Read more...
Divider

Drupal 5.6 and register_globals

Published on the 25th January, 2008

As of Drupal 5.6 you will no longer be able to install the CMS onto a server with register_globals enabled. The notice on the Drupal website says: We no longer support servers with the PHP directive register_globals set to on. Attempts to install Drupal 5.6 when register_globals is enabled will fail. Current installations will continue to function, but will display an error on administration pages and the status report. This check was introduced as a fix for the Cross site scripting vulner...

Read more...
Divider