Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Not sure how should i learn PHP

Hi, I watched Randy's videos on PHP Beginner and im on the second but im not sure really about it all , i dont feel like i understood alot and im a bit confused with it . What should i do ?I know like $ or include etc.. but with email i get confused and i dont know what to do .

6 Answers

I think a better question to ask is what do you hope to accomplish? Do you want to be a designer? or more? Designers can get by and find work without knowing things like Ruby, PHP, and Python. There are also many jobs that if a designer does know these it can help them get the job. The issue is what do you WANT to do? do you want to program or design? If you want to design then skip the frameworks and concentrate on designing. If you want to program then stick to it and work your way through php and or ruby and or python (when we get more python stuff). If you don't understand something ask questions there are a lot of helpful folk here.

Philip Cox
Philip Cox
14,818 Points

Hi. Please believe me I say I'm not trying to be patronising or trolly. I think one of the following misconceptions with the abundance of online learning for code, is that its easy, and after watching a few videos a student will be able to write amazing applications. This may be the case with some talented individuals with iddlic memories, but nor for most of us. I have been learning web dev for coming up 2 years now, and I always learning, and still will for many years. It takes a long time to really grasp all of the concepts and it takes perseverance. All you can really do is keep going over the same stuff until you 'get it', and you will eventually.

Treehouse is definitely one of the best learning resources I have come across, and I have tried A LOT. Nothing comes close in my opinion to how TH design, create and present their material. Another good place is tuts+, you can buy individual courses rather than subscribe. :)

i've been doing this for 20 years, and it's an ever changing environment, you have to constantly be willing to learn in order to keep ahead of the game...

Paul Sullivan
Paul Sullivan
7,876 Points

I've been doing HTML/CSS far longer than PHP. I've only just picked it up and I definitely started out just like you are now (and many MANY others before us), but I've made it a habit to simply go back over materials every few days until it starts to really sink in. Or in the very least, until I simply remember the proper syntax for everything.

Like everyone else before has said, it's really just about being able to stick with it until you've really got it.

just ask following question does platform like wordpress and many php frameworks excite you then that is your way. but in my aponion you should go with ruby on rails

Francisco Milland
Francisco Milland
6,077 Points

I started in web using Joomla, then started learning HTML and CSS, then switched to Drupal, and I clearly remember saying something like "this thing is very difficult" but I kept going for the tree last years and built lots of different websites.

Now I decided to learn PHP, and it feels just like start over but I know I have to keep going, treehouse is a great place to learn, I guess my effot will pay off in the end :)

It been very helpful to see these answers :) like to make a habit to go back over stuff every cople of days etc.. :) Well i want to be able to do a facebook-like page. Like to put comments , log in log out, special comments , put images , delete block user , unblock , have own points like treehouse for every person you know , everything that will help me to make a facebook-like website , not that complicated but you know log in log out , comment etc.. I know theres JavaScript too but my main goal is to know how to manage server language . So i thought PHP is the right to learn for it? or Ruby on Rails? not sure . I hope i wrote it well sorry for my english.

Philip Cox
Philip Cox
14,818 Points

My advice is to stick with PHP, its beginner friendly and you can learn a lot about back-end and databases. Read up on best coding practices, and stay away from not reputable sites and copy/paste code. PHP is a good language if learnt correctly, no matter what people say. Ruby/Rails will be good to look into once you understand PHP. Good luck.

Thank you :) but i have this problem because i fin it hard to learn it . I mean when i did PHP beginner , and i did the form email , if i look at it now , i dont know really how it works . I learned cople of stuff and i feel that PHP is powerful thought not sure how this would work but should i just go on it and watch videos by videos ? one with Mike Shop ? or should i just like practice practice practice and watch over again the same video ?

Philip Cox
Philip Cox
14,818 Points

I would say its more about understanding the main conventions of a programming language. Like, arrays, strings, functions, and later, objects. The mail section is full of different functions and a little on objects. Continue through with the course, more functions will get used and so will object when you come to add database functionality with the PDO object. Each time you see a function used you should get a step closer to understanding them and how they work, hopefully. Then you can go over the mail section again and it should make more sense.

aaa okay i get it :) i know what you mean . Okay then you very much , its really helpful your answer and all others too :) I cant wait till i will learn it :)

Small question , studing 3-5h per day , CSS/PHP , one day before 2015, will i be able to make a webiste facebook-like ? thats around 4.5 months for me coz for around 25 days im off form internet .

Philip Cox
Philip Cox
14,818 Points

You're welcome. I don't have the answer to that one, sorry. Try hard and enjoy doing it. That's the best bet. Learn each section at a time. Write up and draw your idea, divide it into chunks, and do one bit at a time.

Okay :) thank you :) hope i can get well with it . I dont have much time to lean it because i need to well , be able to know how to make facebook like webpage in the next year for sure and then if that enought start with C etc.. if thats possibile i you know what i mean so i can get to University because well , my English isnt too good and maths too and when they say i need like A to go to website and i think like WHAT? i learned HTML and CSS in a month and they want to teach it for whole year and that stuff and i need like B? grade A? i dont understand it , im in college but i cope i can get to University and hope everything will change . Thought i have my own idea thats why im learning it plus i like it . I get inspiration from " Wolf of Wall Street" then Brian Tracy and well , it changed me alot .

What i found is thenewboston and he teaches everything cleari , i mean all the variables , arrays etc.. as you said to learn them its much easier then in the TreeHouse on a webpage they provide because at least its not messi .