codebar / tutorials

🗒 codebar's tutorials
http://tutorials.codebar.io/
257 stars 241 forks source link

PHP Tutorial lesson 2 #428

Closed kodikos closed 5 years ago

kodikos commented 5 years ago

This is to add a 2nd part to the PHP tutorial. I have also tweaked other areas of the PHP tutorial area:

brunogirin commented 5 years ago

I like the new page that explains how to install PHP. Will that install 5.x or 7.x and is there any need to mention version numbers at any point?

kodikos commented 5 years ago

Thanks for looking in, @brunogirin :) You raise an interesting point. I was linking to the PHP instructions thinking it would point to latest installs in a system-dependent way with package managers, but they appear to be mainly showing how to install the 5.x version.. boo :( I think I'll need to add some explicit notes to get everyone installing 7, but might need help on the mac instructions (would brew instructions be sufficient?). phpFiddle is 7.0.x at time of writing. Generally, I don't think the tutorials yet hit any differences, but as I'm bit of a newbie to 7, I'll try to keep an eye out. I wanted to keep the tutorials relatively simple, so hopefully won't come across too much that's incompatible, and I'll always go with the 7.x way of doing things, and add a note about assuming this.

KimberleyCook commented 5 years ago

@kodikos @brunogirin am I good to merge this in?

brunogirin commented 5 years ago

@KimberleyCook yes you are, thanks!

kodikos commented 5 years ago

The installer instructions are not ideal, but it's more a problem with the PHP documentation than ours. It probably also needs a rebase with master as it mods the tutorials index. Thanks @KimberleyCook

kodikos commented 5 years ago

I've just rebased with master. Found out that macs (high sierra+) already have PHP7 installed :)