Close

php

NEW COURSE: Build an AJAX-powered freelance website template

Just released a new project-based course.

In this one you’ll learn:

  • How to submit form data using AJAX
  • How to build a responsive grid with CSS Grid
  • How to send a contact email using PHP
  • How to build a mobile menu using CSS transitions
  • How to build a website using HTML, CSS, jQuery and PHP

And, plenty more.

Full source code is included.

You can get access to it for nothing here: https://skl.sh/2xM6Y3l

Later,

John

P.S. If you’re a Patreon supporter, you can access the course here: https://www.patreon.com/posts/21697046

September 28, 2018

Why so many programmers say PHP stinks

I was perusing Quora today and came across this question:

“Why do so many programmers say PHP is a bad language?”

Of course, that ruffled ol’ Johnny’s jimmies, so I clicked to so see some of the answers and this one made me laugh:

“They’re the same people that want to ban bread knives from being sold based on the premise that they’re murder weapons.

“As the saying goes – ‘PHP is so easy to learn that any idiot can use it. Far too many do.’ You can write terrible, horrible code in every programming language out there. In hard to learn higher level languages like C++, your program will crash or simply not work. In PHP, it will mostly work and allow you to hack along until it does.

“Before PHP5 it was definitely a bad language. PHP5 cleaned up most of the really bad stuff. PHP7 fixed some more fundamental issues, and is really honestly a good mature development environment. For legacy B/C reasons a lot of weird shit is still around, like the infamous string type juggling (1+”1e2f” equals 101…), but trying so actually gives notices these days and is on the way to official deprecation.

“If you use a professional, mature and high quality framework like Symfony you’ll be surprised at the elegant, powerful, clean and highly performant code you can write in PHP that will pass every single software engineering quality test you can think of.”

I mean, look.

Do you blame the wrench if a car is built like s!@#?

The hammer, if a house falls apart in a year?

The gun, if a psychopath shoots up– oh wait…

Point is, PHP is a tool… just like any other language. A screwdriver, a hammer a wrench. Which one you use depends on the job. And anyone who thinks PHP is a double-clawed hammer… is the moron, IMO.

Trick is… knowing how to use the tool properly.

(That’s what sh— dammit, there I go again.)

The truth on all this language war stuff…

Is PHP7 officially put this all to bed.

It’s a mature language, at this point.

All the naysayers are just crying at ghosts at this point.

Anyway, if you want go beyond the “script kiddie” stuff and learn how to build mature, professional PHP applications that will allow you to write your own check when it comes to your web development career…

My PHP curriculum on SkillShare can help you get there:

And, you can get access for nothing. Deets at the links above.

If you wanna make PHP your thing, that’s how to do it, IMHO.

Now, it’s just up to you to grind it out.

Later,

John

September 24, 2018

What they DON’T tell you about PHP

I got this Facebook comment from Jeremy:

But, you won’t hear that from any PHP hater.

And, I know…

I’m beating this horse to a bloody pulp…

But, it’s like I said yesterday:

And, people asking if it’s true.

So, bust out the baseball bat…

I’mma keep hammering away at this.

In any case, you can sit around worrying about if “PHP is dying” or whatever nonsense they dream up next… or you can make like Jeremy…

And, get to work.

There absolutely ARE plenty of tech jobs…

And, freelance projects for PHP developers.

Just gotta get out there and get after it.

Anyway, if you need to learn the PHP skills to get these jobs and/or clients, I’ve got over 20 hours of PHP training you can get access to for nothing.

It’s all over on SkillShare.

Details on the no-cost access is here: https://www.skillshare.com/r/user/johnmorris

Later,

John

August 31, 2018

Ruby is taking over PHP

My response to this:

“PHP is a dying language. Don’t get wrapped up in web code so much that you ignore the fact that the rest of the software industry, which is REALLY big, doesn’t use or care about PHP. Just like COBOL, PHP will probably always exist in some form or another. But it’s hardly used, if it’s used at all, outside of specific segments of web programming and it’s facing a lot of changes from the likes of Python, Ruby, Node, and even C#.”

If all this is just noise to you and you know you wanna learn PHP, you can get over 20 hours of PHP training for nothing here: https://www.johnmorrisonline.com/php

August 29, 2018

PHP usage statistics are bunk

Blah, blah… traffic… something, something. I guess that’s the strategy. When usage statistics don’t show that PHP “is like totally dying and stuff”, then we jump to whatever other statistic that fits our narrative. Anyway, here’s the rebuttal:

August 24, 2018

PHP isn’t used by REAL websites

I’ve been getting these comments more and more lately:

“…let’s just consider that 80% figure, in those stats all websites count the same, so 1 WordPress blog that has not updated in 10 years and gets 10 hits a week counts the same as Youtube getting billions of hits, you see the problem with that, in reality when measured by what counts (usage/traffic) most of the web is not powered by PHP”

This seems to be the new thing among PHP haters.

They really want to be able to say PHP is dead. But, then there’s those pesky usage statistics showing it’s used on 80%+ of websites.

“Well, well, but, but…

“It’s all about the traffic… duh!”

I mean, nevermind Slack or Etsy or Flickr. I’ll even leave out Facebook and Wikipedia. We’ll forget WordPress and Drupal (Whitehouse.gov, NCAA.com, Tesla).

Nope, we’ll just conveniently ignore all those…

And, just go straight to how stupid this argument is.

Think about it this way.

The niche I freelanced in I was building membership sites using WordPress. And, I once built a membership site for a famous blogger named Michael Hyatt.

That site grew to have several thousand members.

All paying 30/month to be members.

Eventually, it became a 7-figure site.

He had a staff of around 10 or so people.

And, they paid me between 30-40K in the time I worked with them on the site. But, because it was a membership site that released content once a week.

It might get a few hundred visitors a day.

It wasn’t a massively trafficked website.

So, the f!@# what?

Did that make their muney less green?

Does that not count as a “real” site?

Point is…

Judging a site based solely on the amount of traffic it gets is an incredibly dumb way of assessing its potential to employ you.

Lots of uber low traffic websites make bank.

And, employ lots of people.

And, pay really well.

The fact of the matter is PHP is used by really high traffic websites, it’s usage statistics are much higher than any other server-side language.

And, it has gotten dramatically better in PHP7.

So, it ain’t goin’ nowhere, Pancho.

No matter how loudly you shriek about it.

End of story.

Anyway, if you’re not one of these PHP-hating scrubs and wanna learn PHP and scoop up all the jobs out there, I’ve got over 20 hours of PHP training you can dig into.

Link is here: https://skl.sh/2JhEqT0

That’ll give you an exclusive 2-month no-cost trial of SkillShare. You’ll get FULL access to my entire library of courses. Take all the training you want.

Cancel any time before the 2 months is up…

And, never pay a penny.

Not a bad gig.

But, up to you… Pancho.

Link again is: https://skl.sh/2JhEqT0

Later,

John

August 23, 2018

Fake PHP jobs

So, from yesterday…

There’s obviously lots of PHP jobs posted out there.

But, Leon asked this in response to that video:

“How many companies lie about their intentions to hire, to create a false shortage, to argue for more (cheaper) foreign workers?”

I’ll keep it real.

My gut reaction is:

“Who gives a f!@#?”

It’s not ALL of them. I know that. And the only way you’ll really know is to apply. It just feels like an excuse to me. And, that gets my inner grumpy old man outta his chair.

Buuuuuuut.

Let me be civil.

I looked it up. I can’t find any hard numbers on it. I saw one guy said 87%, but didn’t provide a single shred of evidence to back up his claim.

And, that seems like a ridiculous number to me.

So, don’t fall for any numbers anyone might spout off.

Unless they give you some real evidence for it.

But, there’s a really simple way you can tell if a job is fake or not. It’s called their “employment brand”. Think of something like Glassdoor.

Is the company reviewed there?

Or, does it have reviews on Indeed?

Does it have a “what it’s like to work here” on its site?

A company’s employment brand is content, both on and off its own site, that talk about what it’s like to work there, what job openings they have, how to apply…

All that.

If it does, it’s probably legit.

If not, probably not.

And when you find a job posting on one of the 10 different sites I showed you in the video, yesterday, you can take about 5 seconds and google a company before applying.

It’s that easy.

So, don’t let this be an excuse.

If you’re legit worried about it…

Search on Glassdoor, then.

Filter by a company’s star-rating.

And, take 2 seconds a google each company…

Before you take the time to apply.

So, noooow… with that excu– ahem reeeason put firmly to bed, now what’s stopping you from applying to a bunch of PHP jobs, today?

Not ready yet?

Need to shore up your PHP skills?

That’s what my PHP curriculum on SkillShare is for. Over 20 hours of PHP training — beginner to advanced, MySQL, OOP, sessions, cookies, etc, etc.

Link to get started for nothing is here: https://skl.sh/2JhEqT0

Later,

John

August 18, 2018

PHP jobs you can apply for right now

I get a lot of PHP haters who love to drone on about there being no PHP work out there. Or, well-meaning PHP developers who are struggling a bit to find PHP work. Well, this massive list of PHP jobs should cure both:

And, do let me know once you get hired. Gives me ammo for the PHP haters. 🙂

Later,

John

August 17, 2018

Why is PHP still being used to create websites?

This was pretty epic.

A real drop-the-mic-er.

It was this answer on Quora I saw the other day from Vakrokh. The question was:

“Why is PHP still being used to create new websites? Why aren’t all new sites using more modern frameworks such as Django or Rails.”

I love how these guys just throw “modern” in there.

As if “modern” automatically equals “better”.

Anyway, here was Vahrokh’s answer:

“PHP is not still being used. ‘Still’ is a word suitable to 2012 PHP, when it has been under an heavy rework and to end users / programmers it looked like it was being neglected and forgotten.

Since 2014 we have PHP 7 (currently, PHP 7.2). PHP 7+ has a massive number of modern features that easily put it on par with Python / Ruby if not above. Interfaces, closures, traits, iterators, containers, exceptions, async programming, websockets (and much more) put PHP back in the competition.

Modern PHP frameworks (Laravel being the most famous, but there are dozens) easily compete with other languages.

Furthermore, PHP 7 brought in something that missed in PHP 5.x: speed and low memory consumption. PHP 7 speed is 100% faster than PHP 5.x and PHP 7.2 is 105% faster than PHP 5.x. The same web request that takes 80 MB RAM on PHP 5.x, takes about 7 MB RAM on PHP 7.2.

A massive saving!

PHP 7 even beats Facebook’s ‘native compiler’ in several tasks. This translates into reduced hosting and upgrade costs. We are talking about the language that could be hosted the cheapest of all, now getting cheaper.

I won’t cover PHP MVC frameworks because there’s copious literature about them. Let’s say there is a flavour for everyone: from the fully featured Laravel and Symfony (that easily compete with Django and Ruby On Rails) to API / backend optimized frameworks, to ‘beginners frameworks’ and mini / micro frameworks.

Last but not least, you can find and hire PHP developer everywhere and their wages are competitive.

All of the above, show how and why PHP is still a widely common choice for new projects.”

Boom!

And, here’s the other thing. In this tornado of new stuff coming out all the time, PHP has been a kind of calm at the center of that storm.

Steadily moving along.

Making the necessary adaptations.

And, still powering 80%+ of the web.

Plenty of work to be had.

(Unless you’re a blue-haired, latte-sipper who “like, OMG, has to work in NYC or L.A. for like a rad start-up. And, PHP is like… ugh… dirty. Gah!”)

If all that chaos has you overwhelmed and terrified of the future, you can simply and calmly just step out of it. PHP is one great way to do that.

That and learning programming principles…

Beyond the languages.

Like object-oriented programming.

Design patterns like MVC.

Security.

Hell, even something simple like proper form-building.

That’s the stuff to learn. The “eye” at the center of a constantly-changing industry that can give you some peace of mind, security and some confidence.

Anyway, let me not blabbeth longer.

Fist bump for Vahrokh.

And, if you want to learn those core languages and programming principles, then check out my PHP curriculum on SkillShare. Everything I mentioned above is in there for the taking.

Link is here: https://www.skillshare.com/r/user/johnmorris

Later,

John

August 7, 2018

100K PHP Project

You know what they say about opinions, right?

They’re like… ahem… everyone’s got one and they all stink.

Well, they get especially stinky when it comes to PHP and it’s “looming demise”.

Take this email Jesse sent me:

“I officially closed my first 6 figure website contract! The original proposal was for 1 business (franchise) after the first meeting I could tell they were really stoked with what I was able to do for them. So they brought it to the board. The board was so stoked on it that they expanded the scope to include 300+ locations. Thought I would share just in case people still think “php is dead” ;)”

That’s the thing about all this.

Medium-heads love to talk.

And, stick their stinking opinion in your face.

But, those of us out here actually doing this… we know… despite all the “epic” YouTube rants about PHP, there’s still tons of opportunity. And, not just small projects, but massive ones like Jesse’s.

It just comes down to if you wanna be a doer…

Or a talker.

For doers, here’s my complete PHP curriculum so you can learn this stuff and get to the doing:

I dare say you go through those courses and you’ll probably know more about PHP than most developers ever will.

And, who do you think these big clients will hire, then?

I’ll leave it at that.

Choice is yours.

Later,

John

 

July 18, 2018

Learn PHP In 30 Minutes

Be honest.

What was your immediate thought?

Hopefully, it was “Yeah right!”

I was cruising through the PHP groups I’m in this morning and I ran across someone pimping this. I clicked to see exactly what it was. And, it’s an ad for the “PHP Crash Course”.

3,317 students enrolled (supposedly).

Sigh.

I mean, who knows?

Could be a great course.

But, c’mon.

It’s a completely wrong-headed approach.

Today, I also got asked this question on Quora:

“How much time would it take to learn web development from scratch and start making some [muney] from it as a freelancer?”

Sigh (x2).

Can we stop with all this?

I mean, I get it. These are people that are probably working some job they hate or just about to graduate from college… and they want to get into a dev job fast. They can’t stand another day where they’re at now.

Or, are terrified of dropping 100Gs on a college degree…

Only to wind up at asking “Would you like fries with that?”

But, it’s NOT about speed.

To me, the bigger question is…

“Can you get hired for that freelance gig and actually deliver?”

Or…

“Can you get that tech job and actually perform?”

Cuz, you could learn PHP in 2 nano-seconds and get a job or a freelance gig… but if you build things that suck… you’ll be OUT of that job or gig in about 2 nano-seconds, as well.

I think you get it, though.

I know you’re smarter than this.

But, I also know this stuff can be tempting in your moments of weakness.

Just remember.

“Nothing worth having comes easy”. 

Anyhoo, if you want a real PHP curriclum, you can get started with mine for nothing over on SkillShare. Here’s what’s in there:

It’s about 19 hours of hard-core PHP training.

And, I dare say, you’ll learn more about PHP than most developers ever will. But, that’s my totally biased (and usually right) opinion. In any case, you can go here to start your 2-month, no-cost trial: https://www.skillshare.com/r/user/johnmorris.

Take all those courses (and all my others).

Cancel anytime before the 2 months is up.

And, never pay a quarter.

If you’re looking to “learn PHP in 30 minutes”… then, this isn’t for you. But, if you’re ready to roll up your sleeves, put in the work and spend the next few months grinding…

I believe you can master PHP in that time.

And, gain the confidence to KNOW…

That you can deliver when you do get hired.

And, to me, that’s worth a helluva lot more than some flash in the pan “crash course”. Buuuuut… to each their own.

Link is here if you want to roll with me: https://www.skillshare.com/r/user/johnmorris

Later,

John

July 11, 2018

Plain PHP Is Completely Useless

I saw this comment in a Facebook group I’m in:

“I spent more than a year on learning and excelling in core php… But as I entered in job market… It’s useless… Completely useless…. Invest your time in php frameworks. And yes we can’t learn frameworks without learning basics”

First off, I feel this.

When I started, it took over 4 years to learn “core PHP”. I know, I’m an idiot, but things were a lot different back then. Anyway, by the time I learned it, all these frameworks like CodeIgniter and Laravel…

And, applications like WordPress and Drupal…

And, Slim PHP…

All these new things had grown up around me.

And, I felt like, “Aaaaaaaaaaah! Now I gotta learn all this s!@#, too!”

It’s frustrating.

But, here’s the deal.

In my opinion, the PHP path is this:

  1. Core PHP
  2. Object-Oriented Programming
  3. PHP framework (or application).

So, yours truly, for example. I obviously know core PHP and OOP in PHP. And, my “framework” (application really) is WordPress. Once you have that down, you’re pretty much set when it comes to PHP.

But, the big thing to remember is…

You don’t need to learn EVERY framework.

Or every application.

Just pick one and specialize in that.

Another thing… remember the job market is vast, diverse and regional. In some areas, it’ll be all Laravel. In others, CodeIgniter. In others, yet… it’s WordPress. If you freelance it’s core PHP and WordPress.

It just depends what YOU wanna do.

Finally, this is why I believe it’s so important to learn core PHP as quickly and as deeply, as possible. Because when you do, learning OOP and then a framework or application is a helluva lot easier.

And, I think this is where a lot of developers get stuck.

And where a lot of instructors miss the mark.

Because, they focus ON going fast.

Which actually slows you down.

We had a saying in the Army for all our training:

“Slow is smooth and smooth is fast.”

To speed up, you need to actually focus on slowing down. Learning every detail until it’s crystal clear in your head before moving onto the next. Otherwise, you end up constantly having to re-learn basic ideas.

And, THAT is what makes learning to code take forever.

In any case, that’s why I teach my courses the way I do. And, explain the WHY behind everything we do and not just show you “what to write”. Sure, it’s a bit slower, at first. But, in my not-so-humble opinion…

You’ll end up learning PHP better than most developers ever will.

And, you naturally pick up speed as you go.

And, in the end, wind up learning the entire curriculum faster.

Anyway, you can get started with my complete PHP curriculum over on SkillShare. Start with my Beginner’s Guide to PHP course to learn core PHP then my Object-Oriented Programming In PHP course.

Then a series of project-based courses to solidify your learning…

PHP Forms.

A Sessions-Based PHP Login Script.

Blogging Application.

It’s all in there. And, you can get started with it all for nothing. Just go here to start the 2-month no-cost trial: https://www.skillshare.com/r/user/johnmorris. Take all the courses. Cancel before the 2 months is up and you never pay a penny.

Maybe the easiest way I know to get “learning PHP” knocked out.

Anyhoo, up to you.

Link is here: https://www.skillshare.com/r/user/johnmorris

Later,

John

July 10, 2018

Why Are Developers Still Learning PHP?

Better question:

“Why are people still asking why are people still learning PHP?”

Sigh.

Anyway, this got asked over on Quora and this Quoran gave one of the better answers I’ve seen. I wanted to share it with you, plus what will be the “canary in the coal mine” to let you know if PHP does ever legit die.

You can listen to the discussion here: https://www.johnmorrisshow.com/332/

Later,

John

July 8, 2018

The Donald Trump of Developers

Got this from Kristopher in response to an email I sent:

“You are the Donald Trump of devs. That is a compliment. It is a circle jerk. I have nothing to do with dev communities. If I code and do other things do I have time for a community? I suspect Php will make a comeback because it has improved and because I think all corporations will use a social function for organization and Angular and all the other languages, besides Java as a backend make it a F!@#ING PAIN IN THE A!@ to upload any files or code for uploading files. In the freelance space no one gives a flying f!@# what the ‘dev community’ has to say.”

This is the thing that always gets me.

I’ve been a freelancer developer for over 14 years now. Never once have I had a client suddenly want to switch to Node or say, “Hey, what about Go?” For that matter, they’ve never even asked about OOP.

Or, any of the other things the “dev community” says you must learn.

Almost all of that is driven by startups…

And, coastal cities.

So yeah… if you want to work at a startup or you live in New York or L.A… okay. Learn Node and Go and all that other crap. But, most everywhere else, there’s a good market for PHP tech jobs.

And, if you freelance…

Well, PHP is king pimp daddy, still.

Doesn’t mean that’s all you should learn. But, in my (usually correct) opinion, you should learn it AND you should learn it FIRST (among server-side languages)… because you’re just missing a whole helluva lot of work if you don’t.

Now, speaking of king pimp daddies…

I’ve amassed a full library of PHP training for you: Beginner’s Guide to PHP, Object-Oriented Programming In PHP, Secure Session-Based Login Script, PHP Blogging Application, PHP Forms, Submit HTML Form to MySQL and Email.

And, you can get them all for nothing with SkillShare.

Just start your 2-month no-cost trial here: https://www.skillshare.com/r/user/johnmorris

Cancel anytime before the trial is up.

And, you never risk a penny.

Easy peasy.

See ya over there,

John

June 23, 2018

Why I don’t use PHP frameworks

“They all suck!”

That’s straight from the horse’s mouth.

Rasmus Lerdorf, the creator of PHP.

He went on to say:

“While they all suck. Everyone needs a framework. What everyone doesn’t need is a general purpose framework. Nobody has a general problem. Everyone has a very specific problem they’re trying to solve. And a general purpose framework, while it can solve it, it usually solves it in a way that you get so many other things that you don’t need… that ends up being done on every request.”

He goes onto recommend using “targeted frameworks” for targeted problems:

“Usually, I tell people to look for a targeted framework. So, if you have a problem that looks a lot like a blogging problem. Maybe, WordPress should be your framework… if your problem is very close to something WordPress can handle, chances are, you’ll be using most of WordPress. There won’t be all these other general purpose things you won’t touch.”

Dude must be stalking me.

Cuz, that’s what I’ve been saying.

While everyone else is getting all sweaty in the shorts about the latest and greatest framework or tool… I’ve generally avoided them and kept things pretty simple. And, frankly, have only benefited from it.

Anyway, there’s no need to re-create the wheel.

And, the general purpose frameworks… while they’re great and can do some cool things, they’re usually overkill for what you need and not “modularized” enough to where you can only use certain parts and kill the rest.

You’re stuck with all-or-nothing.

I’m sure there are exceptions…

But, for me… WordPress is my “framework”.

Of course, I’m not saying it has to be yours. I know some of you just snorted at the horror of me using “dirty old WordPress” as my framework. What a pleeb! But, the lesson is to find a targeted “framework” (whether it’s technically a framework or not) and using it for the specific problems it solves.

Or just go neked… with straight PHP.

And, don’t think you need to learn all these frameworks like Laravel and whatnot.

Or that they’ll be a “perfect” solution to your problem.

Maybe.

Probably not.

Anyhoo, take that for what it’s worth.

Of course, if you want to be a total boss and just code straight in PHP then hop your hard core little tookus on over to this PHP tutorial. You’ll quickly learn the PHP skills you need to start getting paaaid to write code for a living for less than I spent on McDonald’s this morning.

Go now child: https://www.johnmorrisonline.com/php

Later,

John

February 2, 2017

Should You Learn PHP or Python? What About Django?

Subscribe to the Podcast

[saf]

Those of you who’ve been around a bit know I used to be an Al Bundy.

Yes… I will come clean. I used to sell shoes. And, by the way, I was pretty damn good. I remember I once sold $8100 worth of shoes in one week… which was crazy for the chain I worked at. Double what was considered a good week.

Anyway, of course, in the store we had all kinds of shoes.

And, most of use who worked there were in love with the brand: Ecco. They were a very high quality brand that were comfortable as hell. In fact, the shoes I wore every day to work were $150 pair of Ecco dress shoes.

I’d even spent $200 on a pair of Ecco casual shoes I wore everywhere else.

Of course, we also had the other end of the spectrum… the shoes I despised… the Adidas Superstar. I couldn’t stand those things. They looked like boats on people’s feet… with their stupid little plastic toe.

Just plain ugly.

But, everybody wanted them. I sold more of those damn things than I’d ever care to admit. Because that’s what the people wanted.

That’s generally my same opinion on PHP vs Python or Django or Node.

It might be true that Python or Django or Node… or whatever else… is a superior language to PHP. We could debate that until we’re blue in the face probably.

And, you might be right that PHP is garbage.

I mean, who knows really.

But, I do know one thing… the people want PHP. I looked it up just today… and PHP’s market share is estimated at 82.1% of all web sites… whose server-side language we know.

That’s just fact.

No amount of “owning” people about how rotten you think PHP is… or calling people stupid for using it… is going to change that.

I couldn’t stand those ugly superstars… but I’d have been out of job quick if I refused to sell them to the people that wanted them.

And look…

It’s probably true that Python, Django or NodeJS skills are valued more… so you might make more if you learn them. But, it’s also probably true that you might find it difficult to find any job openings for people with those skills. Or, have a steady flow of clients who want projects built using those languages.

It’s also probably true that they could fade away into oblivion in the next 10 years.

Not likely, no. But they could and probably nobody would notice.

Now, of course, that could also happen to PHP… but it’s so embedded into the fabric of the web that if it dies… it’ll be a slow painful death you’ll see coming and can adjust to. Those other languages? Eh.

So, should you learn Python or Django or Node?

Sure.

But also learn PHP.

And if you’d like to learn it the easy way, then head over tohttps://www.johnmorrisonline.com/php and enroll in my brand new PHP 101 course.

P.S. If you liked the show, give it a like and share with the communities and people you think will benefit. And, you can always find all my tutorials, p

June 20, 2016

The Fastest Way to Learn PHP

Subscribe to the Podcast

[saf]

Today, I wanna go back to the question I asked that started this whole discussion about how to go about learning PHP.

That question was:

What if I told you I could help you master PHP… to the point you could start earning your full-time income as a developer… in the next few months, what would you say?

The responses I get so often to this question go like this:

Where do I sign up?

I would LOVE that.

That’s why I’m here.

Let’s do it!

I would be SO appreciative.

So, it’s clear to me this is what you want.

But, there’s a problem.

What I see sitting on top of a YouTube channel that’s got nearly 3 million views and 30,000 subscribers… a mailing list of nearly 20,000 developers… a website that gets between 30,000 and 40,000 visitors/month…

Is the way developers go about learning PHP is all wrong.

It costs you so much time.

And look, I did the exact same thing. It took me almost five years (!) to finally get PHP down to the point I could get paid to write it.

Now, that’s an insane amount of time and not necessary at all.

And, it’s because I made the same mistake so many of you are.

The worst part is when you continually fall victim to these same mistakes… and it just keeps taking you longer and longer to get anywhere… it kills your spirit.

I’m sure you’ve had those moments.

  • Where you were so frustrated you want to snap your keyboard…
  • When you were so overwhelmed you felt like giving up on it all…
  • When you were so disillusioned you started to wonder if you were “smart enough” for this…

I’m here to tell you… YOU are not the problem.

That’s not because I want to make you feel good… it’s because it’s true.

See, most of you’ve been sold a lie about how your learning path is supposedto go. It’s supposed to be hard. You’re supposed to learn this mountain of skills. And, specifically for today’s email.. you’re supposed to do it a certain way.

Now, hopefully yesterday’s email killed those first two lies.

Let me now kill the third.

There are three things you need to learn PHP at light-speed:

  1. An integrated program of instruction
  2. To build real applications while you learn
  3. A mentor to help you over the stumbling blocks

(As a side note: I recently give this exact same answer to a question on Quora.com and it quickly became the most upvoted answer there with 210,000 views of my answer, 449 upvotes and virtually no one disagreeing. So, developers who’ve been through it know this is the fastest way to learn.)

Now, very quickly let me show you how learning PHP following this pattern will free you up to learn as fast as humanly possible.

An integrated program of instruction…

This is the big problem with “free”. So many developers are hung up on this notion that they should never pay a single penny for any development training.

It all has to be free.

Do you know how much free costs you?

I’m the perfect example. It took me almost five years to learn PHP. I’m convinced today anybody could do it in one. But, let’s be generous and say I invested in a course that helped me learn PHP in three years.

That’s two whole extra years of getting paid to code.

Now, I have a 6-figure income… so those two years literally cost me hundreds of thousands of dollars. If I could go back, knowing what I know now, I’d invest in a 200 or 300 dollar course in a heartbeat.

The problem with free is…

When you scour the internet for free tutorials… you get a loose collection of unrelated instruction that costs you time. Lots of it.

But a good paid course will have a systematic approach to teaching you PHP. One lesson builds upon another and are taught by the same instructor… so you there are less “gaps” you have to fill in on your own.

Don’t be afraid to invest a couple bucks on your education… to get anintegrated program of instruction.

It will save you tons of money (and time and frustration) in the long-run.

This is probably the single biggest mistake I see new developers make.

Next, to build real applications while you learn…

If you just take courses or tutorials and don’t build anything with them, you’ll lose a lot of what you’re learning,  you’ll have to go back and re-learn things and it’ll take you longer.

When you build real applications as you learn… the learning sticks, you remember more of it and learn faster.

Always make sure every new skill you learn is used as a part of building some bigger application. So you retain the information better and see how to fit it into an overall application (the things you’ll ultimately be building).

Finally, a mentor to help you over the stumbling blocks

This was a real epiphany for me.

I can remember the exact problem and project I was working on. I had a multi-dimensional array I’d pulled from a database and I needed to loop through that array and build a new one that I’d then use in the rest of the application.

And, I had no idea how to do it.

I fumbled with it for a few days and then I finally swallowed my pride and asked our lead developer at the time what I could do.

He sent me this:

foreach($array as $key=>$val) {

$new_array[] = $val[‘key’];

}

There’s not much too it… but those two little brackets at the end of $new_array[] changed my life. Lol!

Ok, maybe a bit dramatic… but that was what I needed.

And, I got my answer in about 30 seconds.

That day I learned the power of having a mentor. And, I imagined how much faster I could have learned PHP if I’d had someone like that available to me from the start.

So, find someone who knows more than you and beg, plead, pay, barter… whatever you have to do to get them to mentor you.

Now, I promise you…

If you do those three simple things as you learn PHP, I’m convinced you will learn PHP in a fraction of the time it’d take you otherwise. I’ve just seen it time and time again. The people who do these things simply get where they wanna go faster.

And, that’s why I created my new PHP 101 course. To give you all three while you learn. I believe it’s simply the fastest way to learn PHP. You can enroll here:https://www.johnmorrisonline.com/php

P.S. If you liked the show, give it a like and share with the communities and people you think will benefit. And, you can always find all my tutorials, podcast episodes and more on johnmorrisonline.com, @jpmorris on Twitter and youtube.com/johnmorrisvideo.

June 16, 2016

The EXACT PHP Skills You Need to Learn to Get Paid to Code

Subscribe to the Podcast

[saf]

I chuckled a bit when I read it.

You might have seen me ask this question. And I do it because I really want to know where you’re at because that’s the only way I feel I can really help you.

So, I’d asked…

What if I told you I could teach you how to master PHP to the point you can start getting work building PHP applications… in just the next few months?

Now… getting off-subject a bit… that’s an interesting thing to ponder…

What if?

You might take a minute and ask yourself that.

WHAT IF you could master PHP in the next few months… so well you’d be supremely confident in taking on projects and getting paid for it?

Would that be life-changing for you?

In any case, like I said, his answer made me chuckle…

What exactly DOES ‘mastering PHP’ entail?

I chuckle because I remember that feeling. I can relate. And, I can always hear the frustration in people’s words when they ask me that.

Just tell me what I need to learn and I’ll do it!

Now, there’s something to be said for the HOW… and I think a lot of new developers overlook that part (I’ll get to that in a future email).

But, you can’t get anywhere if you don’t know the WHAT.

And, there IS a what.

This isn’t one of those “it depends” non-answers. I believe there’s a foundational set of skills any PHP developer needs to know in order to deliver on projects and get paid to write PHP code.

But, the problem is we tend to overthink it.

You see, I find so many new developers think the “list” of what they need to learn to start doing this full-time must be long?

Right?

I mean, it obviously must include something pretty difficult-to-learn skills… some advanced coding… stuff that’d take awhile to learn?

Doesn’t it?

Here’s the truth…

90% of what you do when building applications will revolve around a very limited set of skills. I know that doesn’t necessarily sound “sexy”… but it’s just the truth.

What’s important isn’t knowing 100 things… it’s knowing a handful really well. Because you’ll use those same skills in new and different ways to create new and different things for clients/bosses/customers/etc.

I call these skills, “The Foundation”…

So, let me tell you what they are:

  • What is PHP
  • Echo
  • Variables
  • Arrays
  • If, else and switch
  • For and foreach loops
  • While loops
  • Get
  • Post
  • Mail

And, that’s it.

Wait, really?

That’s all?

Yeah… it is.

These are the skills I actually use for 90% of what I do.

Now, understand what I’m saying here. These aren’t the only skills you should learn.. eventually. Yes, you should definitely get into more advanced stuff. But, these are what you’ll use most. And you can build working applications with just these skills.

I know, sounds crazy… but it just happens to be true.

Let me give you an example…

A simple online form. Doesn’t sound like much, right?

You may even be thinking, “Hell, I could build that right now”.

You may have heard of Wufoo Forms. It’s a online service that helps you do something pretty simple: build forms.

Well, Wufoo was acquired by SurveyMonkey in 2011 for 35 million. Even, SurveyMonkey itself is about building online forms (surveys) and does 113 million a year in revenue… and is valued at 1.35 billion.

And, the core of both… is just simple online forms.

Or, look at WordPress. There are several major plugins whose sole purpose is to help users build forms: Contact Form 7, Ninja Forms, and Gravity Forms being some of the more popular.

And Ninja Forms, for example, has 2.6 million downloads to date.

There’s a huge market for this one very simple thing. You could get freelance clients or a tech job just being really good at this one thing. And, what you need to know in order to do that… is not much.

Building an HTML form, processing POST data… maybe using the mail() function.

Heck, I could probably teach you how to build a pretty nice contact form in 20-30 minutes. And, there’s 14,800 people searching each and every month on Google for the phrase, “contact form”.

People that would hire you or buy your app.

My point with all of this is simple.

What you need to learn in order to get going is much less than you probably think. I mean look… reasonable people could quibble over a skill or two on that list… but it’s not like 100 more skills you need to learn.

And, contact forms is just one example. There are 100s of markets just like this one with people tripping over themselves to hire a developer or buy a product that does something that’s actually quite simple.

But, here’s the exciting part… now you know! You know exactly what’s in front of you. And, I can promise you… if you learn these skills and how they all work with on another, I’m convinced you WILL be able to deliver on paid projects for clients.

ZERO doubt in my mind.

I know because I’ve seen it first-hand…

My little brother came to me a few years ago… 3 years into his Computer Science degree, no job, broke and suddenly five mouths to feed (he’d married a lady with three kids and then they had two of their own).

He was desperate for his way out…

And a way to put food on the table for his family. I made him do two things:

  • Start taking clients
  • Work through the list I just showed you

Within a week, he had his first client and was getting paid to code. Within a month, his confidence had swelled because he was rapidly upping his PHP skills and he raised his prices. Within two months, he’d decided to “try” applying at IBM and got hired. Now, just a few years later… he has a 6-figure job at one of the fastest growing tech companies in the world.

In two months, that simple list gave him more than 3 years in a CS degree.

Because, he attacked it

So think about this… what if?

I mean, what if it even took you a year to learn all this? That’s a crazy amount of time… but what if absolute worse-than-worse case scenario it took you a year.

How many years will you have left?

How many years would that be NOT working a job you hate? How many years would that be NOT feeling like you’re capable of more? How many years would that be NOT dealing with annoying bosses and co-workers?

My point is… 

Even if you believe you have the worst luck, are the least capable, that forces will conspire to make things take way more time than they should… for you… it’s still 1000% worth the time and effort.

The list above is your way out.

And you can master all those skills in my new PHP 101 course. Enroll at:https://www.johnmorrisonline.com/php

P.S. If you liked the show, give it a like and share with the communities and people you think will benefit. And, you can always find all my tutorials, podcast episodes and more on johnmorrisonline.com, @jpmorris on Twitter and youtube.com/johnmorrisvideo.

June 15, 2016

3 Ways to Verify an Email Address Using HTML, jQuery and PHP

When you verify an email address, there’s really three things you want to do:

  1. Don’t submit the form unless the email address is valid
  2. Give hints about what’s wrong and how to fix it
  3. Make sure malicious data doesn’t get into your database

Well, here’s a handy little snippet that does all three using HTML, jQuery and PHP. Feel free to use this how you need in your projects. And, if you want it you can get the source code as a supporting listener on Patreon.

Anyway, here’s the video… see what you think:

And, if you’d give ol’ JMO a like I’d appreciate it!

And like I said the source code is available on Patreon for the ever-awesome folks who support the show. (Hint: Be awesome. Join them.)

P.S. If you liked the show, give it a like and share with the communities and people you think will benefit. And, you can always find all my tutorials, podcast episodes and more on johnmorrisonline.com, @jpmorris on Twitter and youtube.com/johnmorrisvideo.

Subscribe to the Podcast

[saf]

May 4, 2016