The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Excel To Array | |
| |-------------------------------------------------------------------------- | |
| | Helper function to convert excel sheet to key value array | |
| | Input: path to excel file, set wether excel first row are headers | |
| | Dependencies: PHPExcel.php include needed | |
| */ | |
| function excelToArray($filePath, $header=true){ |
| #!/bin/bash | |
| # How to install PHP memcached on CentOS 6.5 | |
| # Install dependencies | |
| yum install cyrus-sasl-devel zlib-devel gcc-c++ | |
| # Get the latest libmemcached | |
| wget https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz | |
| tar -xvf libmemcached-1.0.16.tar.gz |
| <?php | |
| /* * ** | |
| * | |
| * This script converts an existing MySQL database to migrations in Laravel 4. | |
| * | |
| * 1. Place this file inside app/controllers/ | |
| * | |
| * 2. In this file, edit the index() method to customize this script to your needs. | |
| * - inside $migrate->ignore(), you pass in an array of table |