Tag: 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! 🙂

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 Mongo PHP APP

Today I created my first MongoDB application. Please no applause, this app is incredibly boring.  At the time I was fresh out of cool ideas, especially ideas that required a nice amount of data.
So I went with a simple US Population search script. I actually had a copy of the 2009 census data in a mysql table from some time ago. I have no idea why, I guess I’m a hoarder like that.
But basically I built this just for the experience. I’ve been hearing a lot of hub bub about MongoDB and thought I should give it a try.  I have to say from what I’ve fiddled with so far it is pretty interesting. If you’re coming from a RDBMS like I was, it’s going to take some time to change your thought process.

MongoDB store its data in what they call documents which are somewhat like table rows. I’m not going to go down that road because I’m still a newbie myself and I don’t want to put anyone on the wrong path. But what helped me get along was that I envisioned accessing data from a XML feed. Of course MongoDB documents are not XML feeds but they are structured a bit like a feed.

For example goto Buy.com and view the source of one of their product feeds (Example Product Feed) look specifically at each product node. When accessing data from MongoDB document I put myself in the mindset as if I’m grabbing data from a XML product feed.  Crazy, but it works for me.

Mongo Document Mongovue

Bottom line I think MongoDB is pretty interesting, I’m still new to it so I’m not quite ready to ditch MySql.
During my quest for knowledge I found myself looking for examples to help me get started. In my opinion there wasn’t that much out there but that’s probably because it’s fairly still new. But here are few sites that help me get started.

Copyright © 2024 Joseph Tinsley

Theme by Anders NorenUp ↑