Category: PHP

PHP Sniper, Check the status of Sold Out Product with PHP

New screencast!
So I created a new screencast, a PHP tutorial if you will showing how to use PHP to check the status of sold out products on BestBuy.
I noticed during Black Friday and Cyber Monday there were a few items that appears to be always sold out. So I wrote some code to solve for that.

So if perhaps this code just helps one person grab that hard to purchase item, then I have done my job. 🙂

Thanks america!

Oh by the way the video is titled “Check the status of Sold Out Product with PHP” on YouTube.

How to get a Website Favicon with PHP

New screencast!
Hi all, soooo my new video is not directly related to SEO but I guess it could kind of be if we’re talking about building content.
It’s titled “Get a Website Favicon with Google API #php” I’ve added the #PHP to the end of the title to influence Social Media.

In the video I’m demonstrating how to grab the Favicon from a website using PHP and cUrl.

The Google API I’m using is actually a API I discovered years ago, but surprisingly it still works.

GEO Location data via PHP and IPinfo API

New screencast!
Hi all, so my new video is about getting GEO Location data via the Ipinfo API.
The current title on YouTube is “How to get GEO Location data from IP using PHP and Ipinfo API #php”
This was a pretty simple and straight forward process and of course we used cUrl to get the job done.

But one of the points that I was trying to make is that this data can be used to created highly focus content.

And that sometimes it’s not all about the data that in front of you but more about what the data in front of you can be combined with. Hope that makes sense.

Anyhow thanks!

How to get header response codes using PHP

New screencast!
Okay so I’m happy. This is my 3rd video since my so call comeback.
The video is titled “Get Header Response Code data using PHP” but again I may change out the title within a week to two.
In the screencast we are using the curl_getinfo function in PHP to get the server transfer data. And then carefully (yep I said carefully 🙂 ) parsing through the results to grab the Response code.

Thanks

How to get a websites Title and Meta data using PHP

New screencast available!
I don’t have a set schedule as of yet so I’ve been creating/posting video’s every day.
My latest is titled “Get a websites Title and Meta data using PHP”.
In this video I go over the steps needed to grab a websites Title tag and Meta data using PHP.

PHP has a get_meta_tags functions which makes this task pretty easy. The hard part with this process is grabbing the sites title tag. We went with the preg_match function in order to achieved this.

Using a XML sitemap and PHP to get urls from a competitors website

Sooooo I recently discovered Screencast-O-Matic and now I’m getting back to making YouTube video.

Yep, it’s just that simple. I was previously using Camtasia trial version but could never bring my self around to paying the $199.00.

Screencast-O-Matic is free to use but with limitations (i.e. watermarks, 15 min videos..etc). But the pro version is only $15.00 a year.. geez, can’t beat that.

So my come back video is on SEO and PHP and is currently titled “Get urls from a competitors website using the XML sitemap and PHP.” I mention currently because Im playing around with different version of the title so it may change.

My Youtube channel is listed under name Joseph Tinsley

Thanks! 🙂

Get Zodiac sign with PHP

I know this is strange but believe it or not for a project that I’ve been working I needed to get the zodiac sign from a given date. Besides part of not being sure if I could use comparisons within a switch statement I was able to bang this class out pretty quickly.

I assumed the year wouldn’t matter much so I’m dynamically added in the year via the date functions.

I’ve posted it on my github account in case someone randomly needs to do the same.

ZodiacClass-PHP

Grabbing Stock Market Data using PHP

Using the file_get_contents method is a easy and simple way to grab and parse stock market data using PHP. Yes this is a quick and easy way but for more robust options  like setting custom User Agents and Timeout options you should try utilizing the cUrl function. It’s a lot of material to cover but it’s worth the time.

AngularJS Map Points

Hello Friend (mr robot quote)
Disclaimer.. So I’m new to AngularJ, but I’m really digging it so far.
I started putting this together late last night, I guess technically this would be considered a Single Page Application (SPA). I really don’t expect to be working on it past today. It was intended to be a simple project I could crush out quickly. It’s basically a application to help me get through my day to day at work.
Through out the work week I deal with a lot of  coordinates and Google maps questions. Having a tool that can help me investigate location points is incredibly helpful. Sure I can use Google maps… but this gives me a excuse to do something more about AngularJS.

For about 2 years now I’ve been using Itouchmap.com/latlong.html. It’s a great tool but it can be a bit aggravating at times. Meaning the site has ads strategically placed along the rails of the site so there are times when you find your self accidentally move your cursor across a ad which then triggers a pop up video. Those things are the worst!

As far as the domain. I use Dynadot.com sometimes to purchases domains because Godaddy is becoming a bit too gangster for me. I still had a few dollars in my account and they had .co on sale for $5.99. I danced around with the idea of purchasing a .co for a long time. Yes it’s cheap but the renewals price in most times end up being something crazy. With .coms you can kind of bet on the price being the same if not close to the purchasing price the following year.

yada, yada, yada.. I went with Latlon.co for right now.
Latlon.co Screenshot

Tools used include:
Bootstap of course
Google Maps API because I found a AngularJS directive. (I really wanted to use Mapbox they have a great set of API’s)
Ipinfo.io to give me a users roundabout Latitude and Longitude via IP address.

My First Youtube Video

For many years I’ve trolled Youtube, Stackoverflow.com and other sites stock piling information and code on how to do certain things.
So I figured it was time for me to do my part and pay it forward. I decided to so by cranking out some “How To” videos.
This was my first attempt at screen recording and what I found out is that it’s not as easy as it looks.

1st, my audio sucked so I went out and bought some fairly cheap Logitech USB Headsets from Office Depot. btw. Amazon is cheaper but I wanted and needed the headset ASAP.

2nd, Whenever I played back my video it was blurry. So it took me a few takes to figure out that I needed to change the resolutions to 1280×720

3rd, I’ve never used IMovie before so for me something as simple as trimming a clip took hours to figure out. Come to think of it I’ve owned my Mac for like 3 years now and I think this was the first time I’ve opened IMovie on purpose.

Overall it probably took me like 6/8 takes to get to a point where I thought I was done. I’m crossing my fingers hoping that as I do more it will get better.

Soooo my first video is a “How To” video explaining how to download and parse TV listing data using PHP and a very cool API made available by the people over at TVmaze.com.

The site and API’s are free and very easy to use. And like you’ll see from my video you can get something up and running within a few minutes.

So if you find your looking for this type of data, you should definitely see the set of API’s TVmaze.com has to offer.

f.y.i. I have no theme or structured plan in mind for the videos i create. I only plan to do videos on technology I like and use.

Copyright © 2024 Joseph Tinsley

Theme by Anders NorenUp ↑