How long does it take to learn php

Heys guys i want to create a new website with php but the problem is that i dont know how to use PHP. While i am planning to do a course but can you tell me time in which i can learn php. hmm now i have seen this question before and let me make it very clear to you what i am up to so you can estimate time. I have dloaded ebooks

1.PHP and mysql web developement 4th edition
2. PHP, mY SQL AND JAVASCRIPT by orielly

I am a 14-year ( or 14.5) old 10th grade student with knowledge of HTML 4 , CSS AND XHTML. no programming just have a little bit knowldege of Visual Basic 6.0

I want to design a website regarding computers and it will primary focus on Windows 8 . ( yes it seems strange). so website should be up around 2011 may when beta might come ]

Now what it want to do -

  1. I WANT A website like gizmodo
  2. i want to put flash in my website, the photos in flash would be linked with my website’s other pages
  3. I am upto designing a website with a very graphical and stylish look with the help of photoshop
  4. I would be using dreamweaver to do the coding
  5. i would be making certain reports. I wnt them to be send to an email which the viewer will type in a box
  6. i am upto monetization and will use adbrite, linkbucks and vizu answers
  7. i want my website to remember viewers ip address
  8. one of the most important i want a damn good security system so that hackers cant hack my website
  9. i want a system in which users rather than uploading file on my server will be able to send it on my email


Everyone learns differently, so your question is impossible to answer.

I think a general rule of thumb, in my experience, if you have previous programming experience and understand constructs like IF, WHILE and such then 6months to a year is reasonable to learn PHP well enough to be effective at writing code.

Writing good code on the other hand, takes much much longer.

If you have NO programming experience at all, your probably looking at 1 to 1.5 years learning curve.

It excatly takes 60-1600 days…
(nobody can deny that i guess)
answer as vauge as question :smiley:
no offence

A lot of college students might spend hundreds of hours studying and practicing programming, and still wouldn’t be able to do what you listed in a reasonable time frame. It won’t be easy, but I think you have a shot.

Some of the things you listed aren’t too difficult, but some of them I think you might be underestimating. Anyway, start going through the books. You should be able to get a feel for how fast you’re learning, and as you go you’ll start figuring out how to do some of the things you want to do. Try to simply your plans though. You can always add more features later.

fyi- the security part is where you’re going to be lacking, and probably utterly fail. It’s the hardest part. You can’t effectively defend against things you don’t understand well(much less defend against things you aren’t even aware of). And that’s the problem- the hacker will know more than you. I’m not saying to ignore security, just keep your limitations in mind. Try to avoid having your website deal with any valuable information until you’re much more experienced. It makes you a less appealing target, and if you get hacked, the damage done isn’t as bad.

What kind of content are you going to have? If you are going to just post news, you can just install a blogging software and post. That’s really how a lot of the news blogs got started. Post interesting stuff, get visitors, get money, make more blogs, now you have a network. Not too difficult, but obviously very time consuming.

It is very hard to give an actual length of time that it takes to learn a language. It depends on the person, his or her previous experience and knowledge, and much more.

Security wise, you should check out the link in my signature. It will likely be mind boggling to you, but at least you will know about the issues.

PHP is one of the easier programming languages out there. For this simple reason, it is also one of the easiest language to code horribly in. If you are learning make sure you learn it the right way!

Personally I would suggest getting a good understanding of how MVC and OOP work, as these can get quite complex. As for the PHP language itself, it is fairly easy, and if you have a good understanding of the two concepts I mentioned earlier then it will make your programming much easier in the long run.

You are at a very good time to learn these things, I started at a similar age to you. If I could go back in time and change one thing (programming related), that would be to NOT learn any bad habits as breaking these habits is not an easy task.

As to your original question. Like many of the people that replied, there is NO specific timelimit, its not like suddenly one day you decide that you have completely learnt the language. First and foremost if you have a half decent logic and memory you should pick up the basic fairly easily. Once you get a good grip on these basics it gets much easier. With a bit of analytical and mathematical thinking you can go a long way.

hope that helps.

tHANKS GUYS , I UNDERSTOOD . hmm i know how to use Dreamweaver, HTML, CSS, PHOTOSHOP and FLASH. what i can do is start learning PHP from now. As of my website, i can build a good html site with dreamweaver and along with it , as i get hold of php i can put php code into my website and master php, i can completely transform from a html to php site. also, i am just 14 yrs old. I have my all life what i want is that you all guide me thanks. and for the content

  1. 6 ways to install snow leopard on PC
  2. Windows 7 Shell Editing
  3. Coverage of Windows 8
  4. How to make an “Avatar” of yourselves in photoshop
  5. Software reviews
  6. How to hack a mac !!

do you like these i know dhtml also

Don’t worry about PHP. Seriously.

Go enjoy High School. Learn some PHP in your spare time. You’re not going to build a world-changing website at 14. . .you won’t do it at 24, or even 34, most likely.

If there’s one single thing I could go back and tell my younger self, it’s that you only get to be a kid once, and you’ve the whole rest of your life to be an adult: take advantage of the kid thing while you can. You’ve got the rest of your life to worry about work.

Ben Woldring created a quite popular website when he was 13. Just saying.

And Mark Zuckerburg wrote Facebook in his Dorm Room. The plural of anecdote is not data.

Surely Mark Z. would be working some regular computer engineering job if he had your mentality.

This is a false-dilemma logical fallacy in a silly argument.

And what’s wrong with working a regular computer engineering job? By definition, the overwhelmingly vast majority of people aren’t special.

Personally I think it takes a couple of hours to learn how to make a website but you’ll make all sorts of mistakes in the process. To learn about all of the possible risks in certain methods (like not properly escaping variables before passing them to the database) will take a lot longer. It depends on how deep you want to go. It will take years to learn it properly, at which point it will have moved on so far that there will be loads more to learn :smiley:

To answer your question, just like most of the folks have said, it’s really difficult to judge. It depends on how quickly you learn, and how much time you have to spend on it, and the level of skill that you want to have at the end of it.

Learning a programming language is an ongoing process. I learned what I needed to build a website in a weekend, but I’ve continued to learn. In my opinion, if you’re doing it right, you never stop learning. :slight_smile:

With that, I have to disagree. There’s a balance for your entire life. If you start early, and build something that you can mold and shape, there’s no reason that you won’t be able to play just as hard as you work later on.

That’s a personal opinion, and a personal decision, though. Just my observation.

Either way, google and forums are an awesome place to get help when you encounter something you don’t know the answer to. Good luck, and I’m sure we’ll see you around. :slight_smile:

No it’s not. It’s a simple matter of probability. The opportunity that Mark had was very rare, but if he had not chosen to do side jobs while in college, and get himself hired by the ConnectU team, it is unlikely that he would have gotten the same chance again. Opportunities come and go, but you need to make your situation favorable to these opportunities if you want them. Life is driven by largely luck, but it’s not as if you can’t better your chances of getting some of it.

What you do now also has very far reaching consequences. Even if the OP does not create a big name website, he may attain skills that later become very beneficial. Besides that, who says that it can’t be fun?

There is nothing wrong with a regular computer engineering position, but people have different motivations in life. What might be good enough for you is not the same for someone else. Aiming higher generally means that you fall higher as well.

Well what do you think mate, i am going to go for php with no backgroung at all and write some carppy code. I am learning php but i am just not ready to convert it until i am sure i can do it. Seriously i have more important things. In next 2 years i have to prepare to crack IIT and then i will write my website there with both and php both. And are you to tell my mentality is wrong or right. And even WHEN MARK Z. made facebook he was in college had knowledge i am just 14. Dont you get it i am in high school

I was not responding to you in that message – I was responding to SituationSoap.

But anyway, I personally made my first website when I was 8 or 9 (elementary school, 4th grade) by myself. I did it because it was fun, and I soon took up programming because I loved solving problems, and programming was a good hobby for that. I have my made my share of websites, some making quite a sum of money, all before high school ended, and I never had to pay a cent for any website of mine (thanks to a wide number of friends, and later ad revenue). It was never a major goal of my life either – they were side projects I made over a few weekends and updated occasionally. By all means it is doable, and I know a few people who have done the same.

I did a lot of it before my junior year of high school though. Time becomes a scarce resource fast as high school progresses, so I don’t know for you, but life does not end after high school. Your knowledge, connections, and skills will carry on over to the next stage of your life.

Ayoosh, please, do not listen to SituationSoap.

SituationSoap. I do not mean any offence to you.

But seriously, teaching yourself a skill such as programming this early in life will by no means have an adverse affect on his life. As I mentioned earleir I picked up programming at about 13, and I am glad I did so. There is nothing to lose my learning such a skill, you can only gain.

You may not want to consider it a career, but its a pretty damn good hobby, intellectually. It challenges you to think analytically, and is also very good to have on your CV, whatever job you may choose. It displays you’re a self motivated individual and that you are good at problem solving.

It is never to early or too late to learn something new. Never discourage anyone from learning anything new either.

You should probably re-read my original post. I never told the OP not to learn PHP, I told him not to worry about it, and learn it in his spare time. If you look at the posts of everyone in this thread who learned to code at a young age, they all mention that they did so because it was “fun”. Nowhere, in any of his posts does the OP say he wants it to be fun: he only says that he wants to realize an idea (in multiple languages no less) which means that at some point, this is likely to become work for him.

I’m all for learning PHP at a young age. Go for it! But do it because you enjoy it, not because you think you’re going to get something out of it. Spending your whole life trying things because you think they’ll somehow confer some sort of advantage in your life is a recipe for unhappiness, every time.

Sounds like you’re talking from experience. Ouch!

Since I’m starting to get the feeling the arguments in this thread are going in circles I will summarize this thread thusfar:

  • No-one can really tell you how long it will take to learn PHP. As it depends on whether you’ve programmed before, how much time a day you spend learning, how fast you learn, etc.
  • It’s questionable whether it’s a good thing to learn PHP at a young age. Some argue that you can’t unlearn what you’ve learned (which is true), others are opinioned that learning too young in order to make something of yourself can be damaging to your ego if you don’t succeed (also true).