Skip to content

Instantly share code, notes, and snippets.

View mommaroodles's full-sized avatar

Melanie Shepherd mommaroodles

View GitHub Profile
@mommaroodles
mommaroodles / footer.php
Last active June 5, 2017 23:05
How to Make osCommerce 2.3.3.4 Responsive in 3 Easy Steps
@nacin
nacin / auto-update.php
Last active March 11, 2019 17:17
This is how @dd32 and I test automatic background updates in WordPress 3.7. Then just do example.com/?wp_maybe_auto_update. (If you use a checkout of develop.svn.wordpress.org, you can run this on the `build` directory, then simply run `grunt copy` between updates to copy over the latest code from `src`. This is how we are able to make adjustmen…
<?php
// Add this as a mu-plugin.
if ( isset( $_GET['wp_maybe_auto_update'] ) ) {
add_filter( 'automatic_updates_is_vcs_checkout', '__return_false' );
add_action( 'template_redirect', function() {
$time = date( 'r' );
echo "Starting... $time<br />";
delete_site_option( 'auto_core_update_failed' );
@markbao
markbao / PHP 5.3 and MySQL: certain features only available with mysqlnd - codedoc.md
Last active April 20, 2016 05:19
PHP 5.3 and MySQL: certain features only available with mysqlnd Fatal error: Call to undefined method mysqli_stmt::get_result() Fatal error: Call to undefined function mysqli_stmt_get_result() Fatal error: Call to unefined method mysqli_result::fetch_all() Fatal error: Call to undefined function mysqli_fetch_all

If you've deployed an app based on PHP 5.3 and MySQL using PHP's mysqli, then you may have run into some issues because the mysqlnd driver for PHP is not installed. This is required for some mysqli features like get_result().

You may run into some of the following isseus:

Fatal error: Call to undefined method mysqli_stmt::get_result()

Fatal error: Call to undefined function mysqli_stmt_get_result()

Fatal error: Call to unefined method mysqli_result::fetch_all()