Learning PHP: The Intro

Hello and welcome to my little PHP tutorials. These posts are meant to help people learn and understand how to use PHP. I feel like a lot of people think that coding is complicated and hard to learn but if they only knew just how simple it can be, more people would give it a try. These posts are not going to drone on about useless stuff that you can read in the PHP Documentation, but will be simple, practicle examples that you can use. Let’s get started, shall we?

Creating a PHP File

PHP files can be created using something as simple as notepad or as advanced as PHP Storm. Depending on your budget, find a tool that’s suitable for you to write code in. Here are some free software suites to make writing code a bit easier:

Personally I’m partial to NetBeans but that’s only because that is what I got started on.

Here are the steps to create your very first PHP file using nothing more than Notepad::

  1. Open notepad.
  2. Write your opening PHP tag
  3. Write some hello world code.
  4. Close your PHP tag.
  5. Click file -> Save As.
  6. Name your file. Don’t forget to add the .php at the end of the file name.
  7. In the drop down called “Save as type” select all files.
  8. Select where you’d like to save the file.
  9. Click save.

Once these steps are completed, you’ve written your very first batch of PHP which should look something like the code below.

Next on the agenda, we will make PHP do some basic math. Catch you on the next post how bow dah?

TouchPlow: Uber for Snow Plows

TouchPlow WebsiteIf you live in Canada like I do, you probably hate clearing your laneway as much as I do. TouchPlow is the solution to that problem!

I have to admit that this week I let my laziness get the best of me and by Saturday, my laneway was covered in ice and so using my snowblower wasn’t going to work too well for me. This is where TouchPlow came into play.

As the title of this post states; TouchPlow is the Uber for snow plowing!

TouchPlow is super simple. Create an account, add an address, describe your laneway, and book a plow. They offer varying prices depending on the size of your laneway, whether or not you want them to clear your walkway, and how fast you want them to show up and plow your laneway.

When the job is done the plow operator has to provide proof of the job being completed, and you are notified by the app that your laneway has been plowed. You also get to leave feedback for the operator which is reviewed by a real person within a couple of business days.

I am super satisfied with how the job was completed and how fast it was done! I ordered the 4-12 hour service, and it was done within 2 hours! Incredible!

Thought it was worth sharing! Check out the images below for how it works!

Android Download | iOS Download

How To: Contact the Pokemon Company Support

Pokemon LogoRecently I’ve been playing a lot of Pokemon Duel which is an incredibly fun chess-like game that involves some strategy and luck to come out on top.

Rather than use your Google account or Apple ID to log into the app, the game simply lets you create a game account without any kind of information. This is where the problem lies. When you change devices, you need to go into the app and create what’s called a transfer code. This allows you to transfer your account data to another device. What I was unaware of was that the code is SINGLE USE!

That’s right! Each time you switch devices, you need to generate a new transfer code. Not knowing that, I wiped a device assuming I could use the same code, and boom! Nope!

So I went searching for a support email on the web and it was a pain in the butt to find, but I found their support info.

Here’s the link for the Pokemon Group’s support page.

It has support info for:

  • Pokemon Trainer Club
  • Pokemon Go Plus
  • Pokemon Duel
  • Pokemon Shuffle Mobile
  • Pokemon Trading Cards and Products

Hope this helps if ever you need support!

Welcome to A Boy and His Blog!

Welcome to my updated, fresh, and clean blog!

I spend a lot of my spare time on my hosting company helping people with their blogs and getting them all set up with various items from google such as Analytics, AdSense and even GSuite (Google Apps for Domains).

I plan to cover a wide variety of geeky topics surrounding setting up blogs, getting the most out of your hosting, and what to look out for when maintaining your blog.

I’ll also be going into more detail on when you would need a dedicated server VS when shared hosting will do the job.

If there’s anything specific you’d like me to cover or that you’d like to learn more about, please do leave a comment and let me know. I have access to a wide variety of experts in a lot of different spaces and circles so if I know what the burning question is but don’t know the answer, I can get someone who does!

I’m really looking forward to getting this blog moving and shaking! See you on the internet!

-Andrew

Back on the Vape Trail

E-Leaf iStick PowerLast week I decided I was done with smoking cigarettes for good. I no longer wanted to feel that heavy chest feeling in the morning. I no longer wanted to be wheezing when I went to bed. I no longer wanted to be out of breath walking up short flights of stairs. I was done with all of it.

I headed to a local vape shop and picked up some supplies, and am happy to say I haven’t smoked in a week now.

It’s super simple to get off cigarettes with this method and in my opinion, these devices do a lot less harm to your lungs than a cigarette does. I no longer wheeze, my smokers cough is nearly gone, not to mention I no longer smell like absolute dog shit!

I’m quite happy with the decision and where I’m at. The next step would be to get off nicotine entirely, but I really do enjoy my vape / smoke throughout the day as a way to take a breather, so it will be much harder to stop entirely.

For now I am happy with the result over the course of a week, and I’ll continue to work hard on keeping off the smokes.