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
Abraham Garcia in PHP Scripts   Wednesday, August 2 2017

PHP Function to Get Client IP Address

A small function to retrieve the ip address of the user. This uses the PHP Server Method.

This is a function on how to retrieve users ip address. Use this for you projects. function get_client_ip() { $ipaddress = ''; if (isset($_SERVER['HTTP_CLIENT_IP'])) $ipaddress = $_SERVER['HTTP_CLIENT_IP']; else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) $ipaddress

Continue reading
Abraham Garcia in Fun Stuff   Sunday, July 16 2017

4 Ways to Reduce Powerpoint Size

This is a short list on how to reduce powerpoint size. Allowing you to transfer your presentations via email.

1. Use PPTX Format Rather than PPT Format.  Using the PPTX format is smaller and can reduce your powerpoint size.  2. Export the File as a PDF 3. Instead of

Continue reading