PHP parse_str
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…
Practical guides on AI automation, web development, WordPress, Laravel and the tools we use every day.
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…
I have a couple of tables I'm joining and only want to return users that a field missing in the joined table. Users id fname lname userMeta id metaKey metaValue I'm trying to find users that don't have a record in…
A simple example of how to take a date and change it's format using PHP. August, 3 2015 to YYYY-MM-DD Easily done with the below code: $olddate = 'August 3, 2015'; $newdate = date('Y-m-d', strtotime($olddate)…
I'm trying to parse out an RSS feed for images. My original code grabbed the title, description, link, and pubDate just fine. I read a tutorial online on how to get the images out as well, but now that I've updated my…
We help Kansas City businesses automate the busywork and ship reliable software. Tell us what you're working on.