But since I'm at this point I'd like to know how you started learning PHP? (maybe I'm just assuming too much but there's nothing better to figure things out than by asking the people who know it--you--about it)
36 Replies - 13390 Views - Last Post: 23 June 2012 - 12:40 PM
#1
How do you learn PHP?
Posted 20 February 2012 - 07:33 AM
But since I'm at this point I'd like to know how you started learning PHP? (maybe I'm just assuming too much but there's nothing better to figure things out than by asking the people who know it--you--about it)
Replies To: How do you learn PHP?
#2
Re: How do you learn PHP?
Posted 20 February 2012 - 07:49 AM
#3
Re: How do you learn PHP?
Posted 20 February 2012 - 07:55 AM
There are WAY too many really shitty tutorials with high Google rankings that are polluting the environment. It would be nice if there were some way to remove them from the landscape, but unfortunately that seems an insurmountable task at this point.
#4
Re: How do you learn PHP?
Posted 20 February 2012 - 08:02 AM
Though I will disagree with your php/mysql statement. I believe what really keeps them together are wamp & lamp.
#5
Re: How do you learn PHP?
Posted 20 February 2012 - 10:05 AM
To get our tutorials ranked higher we as authors should take SEO into consideration in my opinion. I don't have much experience or knowledge in it but for those that do should pitch a few tips around.
I just wanted to add that w3schools.com has a big influence on beginners as well.
This post has been edited by codeprada: 20 February 2012 - 10:10 AM
#6
Re: How do you learn PHP?
Posted 20 February 2012 - 02:37 PM
I learnt via W3Schools initially, then I started trying things out, and eventually got to asking questions here. Nowadays, I'm answering more than I'm asking, but I'm still pretty low on the learning curve - I see some answers by other PHP coders and realise that I need to study the manual a lot more. Still, it's the same questions coming up time and again.
As far as web tutorials go, I'm not sure how other people look for them, but I generally distill my problem down to a single issue (e.g. - how do I RegEx replace an array into a template). Once I get my core issue boiled down, finding the answer is easy. I think some other people (read: newbies) want a page and a half of code already written for them that they don't have to think about.
I think the tutorials and snippets sections here could do with a bit better organisation. I'm not sure how to reorganise, but it is a bit overwhelming when I go looking in there - there's a lot of good material, but it can be hard to find unless you know what you're looking for.
#7
Re: How do you learn PHP?
Posted 20 February 2012 - 03:04 PM
e_i_pi, on 20 February 2012 - 10:37 PM, said:
thank god I don’t develop on Windows, so I can just install it from the repository.
#8
Re: How do you learn PHP?
Posted 20 February 2012 - 06:25 PM
All the tutorials you find are using mysql_connect and mysql_query, so naturally you assume you're on the right track. No one has told you otherwise so you continue down that path, following more and more outdated tutorials until eventually you want to try something a little more complex.
And that's when you head over to dreamincode.net, and get slapped hard around the face with a reality check by either Dormilich or CTphpnwb that your code is wide open to security intrusions and everything you thought you knew is garbage.
...At least that's how I remember it.
This post has been edited by Slice: 20 February 2012 - 06:26 PM
#9
Re: How do you learn PHP?
Posted 21 February 2012 - 04:16 AM
#10
Re: How do you learn PHP?
Posted 21 February 2012 - 08:36 AM
#11
Re: How do you learn PHP?
Posted 21 February 2012 - 09:44 AM
I create a little blog like website to learn about database connection and retrieving data from mysql , pagination with php thats about all I can do basic stuff which are actually good enough to make a website and I thought i'm pretty OK with php.
However later on I'm required to do a project using Joomla and I needed custom extension and I realise I don't know a lot about PHP...also because i'm not that familiar with the Joomla framework.
Those are like 2years back and I didn't touch php since then.
As for security stuffs there is always google/DIC to search for a list of security things that you need to do to your sql queries, user input. I only know about sql injection that's about it.
I also heard of various php framework and I used code igniter for about 3 days ...I can't get use to going "this folder, some config file, enter database name, hostname etc..."
Maybe if i'm actually working and require more in-depth knowledge then i'll start to look deeper ...till then i'm going to learn asp.net mvc first.
Edit: Installing php, mysql , apache is a PITA, some guides talk about changing the environment variables while some didn't...in the end I used WAMP.
This post has been edited by aklo: 21 February 2012 - 09:48 AM
#12
Re: How do you learn PHP?
Posted 21 February 2012 - 10:42 AM

POPULAR
So the guy googles the quintessential question "how do I get data from my database onto my page." 1,000,000 hits. So he just starts working his way through, creating accounts, and dumping a canned answer that says "use mysql_function".
Basically, it's a combination of old accumulated "knowledge gunk", and carpet-bombing efforts by "experts" trying to highlight themselves.
#13
Re: How do you learn PHP?
Posted 22 February 2012 - 05:34 AM
The first couple of months I wrote code that followed the same pattern, figuring that it was the correct way to do things. However I continued to learn from reliable online sources, DIC among them for sure. That combined with a senior developer joining the team who began showing me a better way to do things, templating etc. We ended up refactoring about 90% of the project to be OOP with proper code separation.
When I was just starting out I too was lead astray by the abundance of crap PHP tutorials out there showing bad or deprecated practices. I'm sure this is why about 90% of the newbie posters in the PHP forum still use mysql* functions and procedural style programming.
PHP can be written to be elegant and clean and maintainable but, in the wrong hands, can also be used to create a tangled convoluted mess of a project.
#14
Re: How do you learn PHP?
Posted 22 February 2012 - 05:54 AM
It takes a 2MB download of the Web Platform Installer which will correctly download and install the latest version of PHP, MySQL, Caching, Rewriting, etc. etc. and configure IIS 7.5 for you on your local machine. It's virtually identical to a live WS2k8 environment on your own machine.
Does anybody even use Apache these days, even on *nix? I thought everyone woke up, saw it was shite, and moved on to Lighty/nginx.
EDIT: To be slightly more on-topic rather than contributing to the recently spawned discussion... I've been working on some more web tutorials for absolute beginners that teach them best practices from the start, that is, PDO/MySQLi over the main API, OOP from the beginning to get them well grounded, and using MySQL as an actual relational database by introducing JOINs and the like.
It started off as a project for work where I had a team of web developers (front end) who knew nothing technical but needed to be trained in PHP from the ground up.
This post has been edited by RudiVisser: 22 February 2012 - 05:57 AM
#15
Re: How do you learn PHP?
Posted 22 February 2012 - 09:07 AM
RudiVisser, on 22 February 2012 - 12:54 PM, said:
What, specifically, makes Apache so bad?
I've heard you, and others, make this argument before, but I've never seen anybody actually back it up with facts or references to anything except more random posts/blogs. (Not that I any reason to doubt you. I'm just interested to see the reasons.)
|
|

New Topic/Question
Reply


MultiQuote










|