Various small bugs found in testing PHP

Mcrypt for Laravel
Temp directory for file uploads