PHP DateTime Class and Functions
With PHP 5 they introduced the DateTime class. Prior to that everyone used strtotime, date, etc...commands to achieve the same results. I was a late adopter and continued to use the old commands. Recently I decided…
Practical guides on AI automation, web development, WordPress, Laravel and the tools we use every day.
With PHP 5 they introduced the DateTime class. Prior to that everyone used strtotime, date, etc...commands to achieve the same results. I was a late adopter and continued to use the old commands. Recently I decided…
The PHP function strtok splits a string one by one. In the example below I'm trying to split off everything after the ? in the…
This will be a walk-through on how to create a submit form that checks the database to make sure the username is not taken. If it is taken it will not allow the submit button to be activated. HTML on index.php…
Quick example of how to use PHP's parsestr command. Here is an example of my data: $source = "accesstoken=CAAWhyYsjaWsBAOCwjZCs&expires=5180531"; What I'm trying to do is just grab the string of the accesstoken…
These are two different commands with different outputs when added to a SQL query. MySQL "in" command for example: select from assets a left outer join assetInterests ai on a.id = ai.assetID where orgID = 2011 …
This is the first in what will end up being a several part tutorial on creating a Twitter posting program. These tutorials will show how to create the bot using the PHP library that interacts with Twitter's API, called…
I ran into an issue today with trying to restrict page access by IP address from within an Apache .htaccess file. It was brought on by a site I host continuing to have an old employee getting in and messing with the…
How can I just select the value of the data-date attribute. I need to get 2016-02-14 into a jQuery variable. You can select it with jQuery…
Is there a way to text-transform an all caps dataset? Example data: THIS IS MY TEXT If I add text-transform:capitalize; on that text nothing happens. My desired output of the original text would be: This Is My…
I have an ajax call: $.ajax({ type: 'POST', url: 'submit.php', data: { templateID: url, submitType: 208 }, success: function(data) { console.log(data); } }); It returns: {"subject":"Test…
We help Kansas City businesses automate the busywork and ship reliable software. Tell us what you're working on.