Tagged: PHP

Deleting records in AWS Cloud Search

Deleting All Records through SDK Managing documents is sucky in Cloud Search. The CloudSearch Management Console won’t let you see all of your documents – the best you can do is some test searches...

Lexington Medispa Redesign

Bemedispa of Lexington KY, the award winning Medispa, had 3rd Dimension Design redesign and relaunch their main website in January. The new site would be a complete design overhaul with a focus on responsiveness...

Yourfriendswholike.com

YourFriendsWhoLike.com

In Sept and October of 2016 I built a website that would allow you to search for facebook friends that liked Politicians. This was a big opportunity since the 2016 presidential election was so...

Dynamic Field Sorting for WordPress ACF

A site my employer has uses the Advance Custom Fields plugin for WordPress. They use the plugin to create custom post types which they use for creating product pages. This plugin allows you to...

Form Variables not Passing Integers

is_int() vs is_numeric() One great way to handle security it to make sure that your code is expecting the type of input it needs, rather than what it gets.  For example if you code...

Make a Form Cancel Button

The Cancel Button You are making an edit form for a site. The form allows a users to make changes to something and submit the changes to the database. This is a typical scenario...

Regex: Match everything between two things

Ohh the adventures of regular expressions!!!  I’ve been beating my head against the wall with this one.  I have a long string filled with all kinds of characters and variables and I need to...

Storing and sorting Values in PHP Array

Storing and sorting Values in PHP Array

I just had a huge ordeal dealing with an array.  I needed to loop through an array – process some tasks – then return a value and store that value along with another value...

Regular Expression Anything In Between Two strings

Regular Expression Anything In Between Two strings

$pattern = ‘/(?<=customProgramName=\’)(.*?)(?=\’)/’; Matches anything after “customProgramName=’ ” and before the closing ” ‘ “. Took me forever to figure this out!!!! Good Examples Look Behind and Look Ahead