Find out Where Function Was Called From in php

Recently had a problem where an API was getting called once mysteriously before it was supposed to be and discovered this little piece of useful code, which revealed that one of my class __construct()s was calling it. $trace=debug_backtrace(); $caller=$trace[1]; echo “Called by {$caller[‘function’]}”; if (isset($caller[‘class’])) echo ” in {$caller[‘class’]}”;

Amazon AWS S3 and CORS

In order for Javascript to be able to access items stored in an Amazon S3 bucket, the bucket needs to have a Cross-Origin Request Sharing (CORS) file in it. Based on CORS with CloudFront, it looks like at this point the S3 buckets start out with a CORS configuration file with a wildcard alloworigin configuration: … Continued

mZ Mindbody API V2.0 released

This feels like the first major release of the free Mindbody wordpress interface in quite a while. Possibly the most significant change comes out of the Roots.io body of work, specifically the Sage starter theme workflow. Where the first series of releases of the plugin included the Bootstrap framework as a dependency, taking a cue … Continued

Adaptive Streaming via Amazon AWS

Adaptive Streaming via Amazon AWS using S3, CloudFront and Elastic Transcoder Recently got brought on board to help develop a streaming music and video project for a new yoga-based subscription site that will be called Love Tribe Vibes. It’s a Drupal-based site and there are three people on the team so far – the project … Continued

How to include a single Icon (or small set of icons) in a web page

To include a small set of icons with (a set of one at the moment: <i class=”fa fa-sign-in”>) in a wordpress plugin, I’m using Gulp and Bower to manage a minimal set of Font-Awesome components: { “name”: “mz-mindbody-api”, “version”: “2.0”, “authors”: [ “Mike iLL Kilmer <mike@mzoo.org>” ], “description”: “Wordpress MBO API Integration Plugin.”, “license”: “MIT”, … Continued

Use Bedrock on Shared Server?

This is an .htaccess file someone posted for using Bedrock on a Shared Server. Posting here in case of need… Options -Indexes # .htaccess primary domain to web redirect # this file must be in the (public_html | web ) folder of your hosting account # make the changes to the file according to the … Continued