osx – Updating php version on mac – Stack Overflow

brew update && brew upgradebrew tap homebrew/dupesbrew tap homebrew/versionsbrew tap homebrew/homebrew-phpbrew unlink php56 brew install php71You might get an error if PHP 5.6 has not been installed by brew previously, but don’t worry, you can simply continue.You can also change the version to 7.0 by replacing the command from above commands brew install php71 to…

Building a settings import and export feature – Pippins Plugins

$settings = get_option( ‘pwsix_settings’ ); nocache_headers();header( ‘Content-Type: application/json; charset=utf-8’ );header( ‘Content-Disposition: attachment; filename=pwsix-settings-export-‘ . date( ‘m-d-Y’ ) . ‘.json’ );header( “Expires: 0” ); echo json_encode( $settings );exit; Source: Building a settings import and export feature – Pippins Plugins

How to Store Multi-dimensional Array in Mysql Using PHP

Json_encode(): This is one a good method, while playing with AJAX and PHP. Because now a days, AJAX is most popular one and needs to retrieve the results on the same page by processing the AJAX calls. Let’s start with an simple example. I dont code the database connections codes, just go with mysql query and…

TUTORIAL: Developing Locally on WordPress with Remote Database Over SSH – Technosailor.com

Configuring WordPress to use the TunnelNow that we have a successful SSH tunnel, you have to configure WordPress to use it. In the wp-config.php file, simply modify the DB_HOST constant to read:1define( ‘DB_HOST’, ‘127.0.0.1:5555’ );You need to add two more variables, though, to override WordPress’ existing siteurl and home options to allow you to work…

Carl Sagan on religion – YouTube

0:43brought close to culmination in the0:44notion that we are created in God’s0:46image the creator and ruler of the0:50entire universe looks just like me0:54my what a coincidence how convenient and0:59satisfying the 6th century BC Greek1:03philosopher Xenophanes understood the1:06arrogance of this perspective here’s1:08what he said the Ethiopians make their1:11gods blacken snub-nosed the three scenes1:14say theirs have blue…