Abraham Garcia in PHP Scripts   Monday, October 16 2017

Presigned URL for AWS S3 Object with PHP

This is a tutorial on how to generate a presigned url for Amazon AWS S3 Object with PHP.

This is a short tutorial on how to create a presigned url for an amazon S3 object. require('./aws/aws-autoloader.php'); use Aws\S3\S3Client; $bucket = 'mybucketname'; $s3 = S3Client::factory(array( 'region' => 'us-west-2', 'version'

Continue reading
Abraham Garcia in Application Development   Friday, October 13 2017

Cordova Allow Audio to Play in Background and in Silent Switch

This plugin is useful when your phone switch is on silent and you want app music to play on silent. This also lets music play in the background. This is a Cordova Plugin.

This plugin is very usefull when you want to play HTML5 Audio Tracks in Background and super easy to use. It also bypass the silent mode on iOS.  Plugin Source: https://github.com/katzer/cordova-plugin-background-mode 

Continue reading
Abraham Garcia in PHP Scripts   Tuesday, September 12 2017

Upload a File to AWS S3 Bucket with PHP SDK

This is a sample PHP script on how to upload a file to AWS S3 using PHP SDK

This is a sample script on how to upload a file via the PHP AWS SDK.  require('./aws/aws-autoloader.php'); use Aws\S3\S3Client; $bucket = 'mybucketname'; $s3 = S3Client::factory(array( 'region' => 'us-west-2', 'version' => 'latest',

Continue reading
Abraham Garcia in Javascript/jQuery   Monday, September 11 2017

jQuery Validation Without Form Submit

Short tutorial on how to submit a form without the submit button. This is using the valid function within the jquery validate plugin

This is an example on how to submit a form without actually clicking on the submit form. Useful in many applications. This is using the jQuery Validation Plugin. $(document).ready(function() { $("#test").validate({

Continue reading