Where/How did you learn php?

Discussion of non-phpBB related topics with other phpBB.com users.
Forum rules
General Discussion is a bonus forum for discussion of non-phpBB related topics with other phpBB.com users. All site rules apply.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22952
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: Where/How did you learn php?

Post by Mick »

I used to stand in bookshops reading programming manuals when I needed to know something as I couldn’t afford the books. I also couldn’t remember what I’d read half the time and took to taking a notebook with me which got me ejected more than once. Thank heavens for t’interweb!
"The more connected we get the more alone we become" - Kyle Broflovski©
User avatar
eeji
Jr. Style Validator
Posts: 1321
Joined: Fri Dec 12, 2008 9:08 pm
Location: Manchester, UK
Contact:

Re: Where/How did you learn php?

Post by eeji »

Mick wrote:
Sat May 26, 2018 10:24 am
...You may be better off learning something like BASIC first...
This is where I started, with BASIC back in the 80s. Fast forward lots of years and I'm fumbling my way through phpBB as I try to build upon it to extend my forum to a full website. With some help from a few friends and the php docs it's starting to look ok. After 11 years or so using phpBB I'm still using the php docs to help me on other project sites. Also because all I had was BASIC (and without blowing my own trumpet, quite good with it in school) procedural php was the logical path for me to follow - I still can't get my head around OOP :D
User avatar
Mick
Support Team Member
Support Team Member
Posts: 22952
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket probably.

Re: Where/How did you learn php?

Post by Mick »

BASIC is much maligned. Myself and my brother in law at the time (an IBM programmer) wrote the timetables for the whole of a City Corporation bus service in BASIC in the eighties and it worked for many years. Its amazing what you can get on an 8” floppy.

BTW: OOP is a myth, tidy mind = tidy code, somebody told me that.
"The more connected we get the more alone we become" - Kyle Broflovski©
User avatar
JLA
Registered User
Posts: 589
Joined: Tue Nov 16, 2004 5:23 pm
Location: USA
Name: JLA FORUMS
Contact:

Re: Where/How did you learn php?

Post by JLA »

Started the process of learning PHP here on this site way way way back. Was an experience to say the least.
User avatar
RMcGirr83
Former Team Member
Posts: 21824
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Where/How did you learn php?

Post by RMcGirr83 »

From pthirik many, many moons ago
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
bcousins
Registered User
Posts: 26
Joined: Thu Apr 28, 2011 1:02 am
Name: Ben Cousins

Re: Where/How did you learn php?

Post by bcousins »

JustAGuy7 wrote:
Fri May 25, 2018 8:23 pm
How did you start to learn php?
It was a hot summer night in Australia, I sat down at my laptop and realised that I wanted to interact with databases and dynamic page content.

... and so I learnt PHP... because that's what you do.
User avatar
AmigoJack
Registered User
Posts: 5814
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Where/How did you learn php?

Post by AmigoJack »

bcousins wrote:
Tue Jul 03, 2018 4:07 am
a hot summer night in Australia
Given the climate there isn't this a bit too vague? Sounds tautological, as in "wet water".
User avatar
bcousins
Registered User
Posts: 26
Joined: Thu Apr 28, 2011 1:02 am
Name: Ben Cousins

Re: Where/How did you learn php?

Post by bcousins »

AmigoJack wrote:
Tue Jul 03, 2018 6:54 am
bcousins wrote:
Tue Jul 03, 2018 4:07 am
a hot summer night in Australia
Given the climate there isn't this a bit too vague? Sounds tautological, as in "wet water".
Hot, as in, above 35 degrees C. It was the middle of summer and in the centre of a heatwave after all. Stuck in a house with dodgy cable TV.
ponchi101
Registered User
Posts: 12
Joined: Fri Dec 04, 2020 3:12 pm

Re: Where/How did you learn php?

Post by ponchi101 »

Hello.
I am at the same spot that JustAGuy was a couple of years ago. Although I started programming with Fortran ages ago, and then did a lot of VB/VBA, plus a little python, I am running a board now and I believe I really need to learn PHP. I copied the link for the PHP manual, and will start there.
but, I am old fashioned (and old) and I have always liked books better. Are there any good PHP books out there? Amazon sells several and they all promise to make you a master of PHP blindfolded and in multiple languages, but I need one that will help me to make some extensions that I need for our board.
Thanks for any and all tips.
User avatar
JLA
Registered User
Posts: 589
Joined: Tue Nov 16, 2004 5:23 pm
Location: USA
Name: JLA FORUMS
Contact:

Re: Where/How did you learn php?

Post by JLA »

Best way to learn is to read the code and see what and how the different pieces work. Rinse and repeat!
User avatar
AmigoJack
Registered User
Posts: 5814
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Where/How did you learn php?

Post by AmigoJack »

ponchi101 wrote:
Sat Dec 19, 2020 3:08 pm
I copied the link for the PHP manual
That's too self-restrictive already - it's as easy as https://php.net/fopen where fopen can be replaced with any function name or instructions (i.e. https://php.net/else) - you really only type php.net/ into your internet browser's address, followed by what you want to look up. And almost every page comes with examples and mostly useful comments by users. Try it that way.

ponchi101 wrote:
Sat Dec 19, 2020 3:08 pm
I am old fashioned (and old) and I have always liked books better
But don't you hate that you can't CTRL+F in a book? That you only have an index with the chapters? That even when you have a keyword lookup at the end it by far cannot come up with every keyword? That's one giant advantage for me. And not being able to stick notes to a non-book can be easily substituted by writing comments in your program code.


Also keep in mind that languages nowadays evolve much faster than at an era where Fortran and Algol were prominent - a book on nowaday subjects can become outdated within one year easily, because i.e. PHP 7 comes with so much more than PHP 5. I understand that you got along with your way and probably still do so. But how did you succeed in Fortran and VB and now don't recognize that PHP is in the same way procedural? Or object oriented programming as in VBA?

ponchi101 wrote:
Sat Dec 19, 2020 3:08 pm
but I need one that will help me to make some extensions that I need for our board
Such a book will never exist, as this is phpBB specific. This has little to do with how PHP works, but instead how phpBB's concepts and a few other techniques must be understood - for that there exists the phpBB Extensions manual. And you might be interested in the phpBB Skeleton Extension as a start.
ponchi101
Registered User
Posts: 12
Joined: Fri Dec 04, 2020 3:12 pm

Re: Where/How did you learn php?

Post by ponchi101 »

AmigoJack wrote:
Sun Dec 20, 2020 1:34 am
...But don't you hate that you can't CTRL+F in a book? ...
...But how did you succeed in Fortran and VB and now don't recognize that PHP is in the same way procedural? Or object oriented programming as in VBA?
...
Indeed, no ctrl+F in a book, but I like to use both things. It is not an OR issue; I like the book to compliment on what can be found online. But, as you say, a book can become obsolete very quickly. That was the reason why I was asking for a recommendation.
Thanks for the links, they seem very helpful. If I may use some more of your time: do you know of a good emulator to practice php? Yes, I got along with older languages and the structures will likely be the same. But syntax and commands are usually a bit different, which is where I need some guidance.
Your post was brilliant. Txs!
User avatar
AmigoJack
Registered User
Posts: 5814
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Where/How did you learn php?

Post by AmigoJack »

ponchi101 wrote:
Sun Dec 20, 2020 4:08 pm
a good emulator to practice php
XAMPP is the easiest way. One of the P's in that acronym stands for PHP (and the others mean you also get a full HTTP server, a database management system, and the Perl language, too). You don't even need to call your PHP files thru the internet browser - since PHP is only an interpreter you can call it from the command line to directly parse a file and output what's meant as output. It's as easy as creating this file:

Code: Select all

<?php
  echo 'hello world!';
  echo 3.1415+ 700;
and interpreting it thru calling php.exe -f helloworld.php. Using XAMPP has the benefit that at a later time you can also run a full phpBB installation at your local PC and testing your extension.

Or you download PHP right away - all you need is php.exe for starting to fool around.
User avatar
warmweer
Jr. Extension Validator
Posts: 6198
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Where/How did you learn php?

Post by warmweer »

AmigoJack wrote:
Sun Dec 20, 2020 8:36 pm
XAMPP is the easiest way.
Just in case: XAMPP is one of the easiest ways.
XAMPP is a personal webserver software package allowing emulation of a webhost, on your PC (not to host a website for the public, but to test it, or just to fiddle around with anything php).
Which one you use will depend on personal preference.
Other similar free packages are Wampserver and EasyPHP and if you have no experience whatsoever, then USBWebserver 8.6.1 and 8.6.2 or USBWebserver 8.6.5 are probably the absolute easiest to start with (these being truly barebones).
User avatar
RMcGirr83
Former Team Member
Posts: 21824
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: Where/How did you learn php?

Post by RMcGirr83 »

The best teacher I ever had, about 10 or so years ago, was an individual with a pseudonym of Ptirhiik. The original author of "Categories hierarchy". Looking back the absolute most patient person I have ever had the pleasure of "meeting" on line.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
Post Reply

Return to “General Discussion”