[Update 2024] - This gist is almost useless compared to Drupal at your fingertips. Will create pull requests to update that if something is not already there.
// Load file object
$file = File::load($fid);
[Update 2024] - This gist is almost useless compared to Drupal at your fingertips. Will create pull requests to update that if something is not already there.
// Load file object
$file = File::load($fid);
<?php | |
/** | |
* Reference: | |
* http://code.tutsplus.com/tutorials/why-you-should-be-using-phps-pdo-for-database-access--net-12059 | |
*/ | |
function connect() { | |
/** | |
* No matter what error mode you set, |