Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Monthly Archives: February 2014

Network Security

Chompy the dinosaur guards our wifi.

2014-02-24 15:56:53 # Comments Off on Network Security

Fun with CodeIgniter

I just spent many hours wrestling with CodeIgniter. For one thing, it seems to go out of its way to hide PHP errors from you, even in development mode, and even when you try to turn everything back on manually with directives in your index.php.

This doesn’t help when you are trying to integrate AJAX file uploads, and can’t figure out why all you ever get is a ‘500 Server Error’, with no indication of where that error is occurring.

For the record, my problem was that I needed to use CI’s form_open_multipart() function, in order to get the hidden CSFR protection token. Without it, the Security class was just silently dying before ever getting to my controller’s action handler.