To be able to use PHP5 PDO with MS Access mdb files the following is required
(the same applies for the PHP4 style of using odbc_X except for the
obviously PDO specific requirements):
In Linux this is achieved by intalling the php5-odbc package:
| # ignore everything... | |
| /* | |
| # ...but | |
| # htaccess is ignored since we have a different versions for each stage see in /deploy | |
| !/.gitignore | |
| !/composer.json | |
| !/composer.lock | |
| !/.editorconfig | |
| !/README.md |
| <?php | |
| /** | |
| * Requires php >= 5.5 | |
| * | |
| * Use this script to convert utf-8 data in utf-8 mysql tables stored via latin1 connection | |
| * This is a PHP port from: https://gist.github.com/njvack/6113127 | |
| * | |
| * @link : http://www.ridesidecar.com/2013/07/30/of-databases-and-character-encodings/ | |
| * | |
| * BACKUP YOUR DATABASE BEFORE YOU RUN THIS SCRIPT! |
| /** | |
| * Place this inline at the bottom of the html document, right before | |
| * closing `</body>`. It's important to have this inline as we want to | |
| * display images asap. | |
| * | |
| * Markup example for the actual images. It also calculates the image | |
| * container using the [padding-top hack](https://gist.github.com/davidpaulsson/10101985), | |
| * please do this calculation on the back end, before drawing the DOM. | |
| * Current example can load three images sizes, customize to fit your needs. It | |
| * also adds the calculated image URL as an data-original tag on the img element it creates, |
To be able to use PHP5 PDO with MS Access mdb files the following is required
(the same applies for the PHP4 style of using odbc_X except for the
obviously PDO specific requirements):
In Linux this is achieved by intalling the php5-odbc package:
| <?php | |
| /** | |
| * Configure SilverStripe from the _ss_environment.php file. | |
| * | |
| * Edit this file and rename from _ss_environment.sample.php to _ss_environment.php. | |
| * Put "require_once('conf/ConfigureFromEnv.php');" into your _config.php file. | |
| * http://doc.silverstripe.org/framework/en/trunk/topics/environment-management | |
| */ |