1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is PHP hard to learn for a newbie ?

Discussion in 'PHP & Perl' started by Desert90, Dec 18, 2013.

  1. Desert90

    Desert90 Power Member

    Joined:
    Sep 23, 2012
    Messages:
    748
    Likes Received:
    123
    Location:
    BHW
    I would like to learn a coding language. I think C would be too heart, so i want to learn PHP.
    Only for me and maybe later for small projects. I only know a bit of HTML.
    Can i learn PHP and MYSQL if i buy a good book and work hard on it ?
    Or any other suggestions what's better for a newbie ?
     
  2. Diplomat

    Diplomat Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 25, 2011
    Messages:
    872
    Likes Received:
    409
    Occupation:
    CEO
    I'd suggest learning HTML and CSS first because PHP's output is HTML.
    It's not difficult to learn it. http://w3schools.com is a great place.
     
    • Thanks Thanks x 1
  3. Schvamp

    Schvamp Power Member

    Joined:
    Feb 13, 2012
    Messages:
    685
    Likes Received:
    549
    Location:
    Hogwarts
    So many opinions on this.
    I should at least go for HTML and CSS first.
     
  4. Falrish

    Falrish Regular Member

    Joined:
    Jun 28, 2010
    Messages:
    313
    Likes Received:
    97
    Occupation:
    Manager, IT & Purchasing
    Location:
    Canada
    Home Page:
    Okay, PHP outputs HTML if that is what you want it to do.

    It is very important to learn the HTML and CSS standards before you start delving into server side programming languages, as the protocols are very important in all web access. As for the difficulty of learning it, it greatly varies depending on your grasp of programming languages. If you understand the syntax of other languages PHP will be no problem for you. If you have never programmed before it may take a little more time.

    My suggestion is to start off by learning how to set up quality HTML code. Next you need to know how to augment that code with CSS. Once you have those two taken care of you can start to delve into PHP or ASP.
     
  5. Desert90

    Desert90 Power Member

    Joined:
    Sep 23, 2012
    Messages:
    748
    Likes Received:
    123
    Location:
    BHW
    Thanks guys for the help :)

    I will try to get a good book about HTML/CSS programming :)
     
  6. fedix11

    fedix11 Newbie

    Joined:
    Jan 18, 2013
    Messages:
    15
    Likes Received:
    3
    I suggest you to go to codecademy.com learning html, php, css, ruby, asp etc etc will be a nice game!
     
    • Thanks Thanks x 1
  7. Diplomat

    Diplomat Jr. VIP Jr. VIP Premium Member

    Joined:
    Oct 25, 2011
    Messages:
    872
    Likes Received:
    409
    Occupation:
    CEO
    Wat iz you talking about Cletus?

    PHP outputs HTML if that is what you want it to do ?!

    That's stupid.. Output is text/html which is HTML with or without HTML tags.

    Also you need to learn HTML with CSS.. learning them separately doesn't make sense.
    Also, ASP is old and it's syntax is not that common anymore.. ASP.NET and it's MVC is the new shit.

    I'd suggest OP to use PHP to get basic understanding of OOP and then ASP.NET if he wants it.
     
    • Thanks Thanks x 1
  8. Sharp25

    Sharp25 BANNED BANNED

    Joined:
    Dec 8, 2013
    Messages:
    38
    Likes Received:
    27
    Choose any course from UDEMY..

    And PM
     
  9. COLDEXE

    COLDEXE Junior Member

    Joined:
    Aug 29, 2013
    Messages:
    104
    Likes Received:
    24
    Location:
    UK
    php seems really easy if you know the syntax. I know vb.net which is very easy and php is quite similar.
    I think if you checked out a few tuts you'd be off writing within a week or two.

    I've been using this site to ease me into php and I find it good to learn from. The tutorials aren't boring like some.

    php-101-php-for-the-absolute-beginner/
     
  10. itsdjango

    itsdjango Regular Member

    Joined:
    Jun 16, 2013
    Messages:
    327
    Likes Received:
    59
    Occupation:
    Engineer.
    Location:
    outside your window
    Rather than books, you should try watching some videos on youtube or where you can find good one.
    Bet that's more faster and easy way to learn php. Good Luck
     
  11. jass11

    jass11 Elite Member

    Joined:
    Jul 22, 2010
    Messages:
    1,538
    Likes Received:
    1,085
    Occupation:
    IM & CPA
    Location:
    BHW
  12. Macthetrix

    Macthetrix Regular Member

    Joined:
    Feb 21, 2013
    Messages:
    379
    Likes Received:
    389
    Occupation:
    The Boss
    Location:
    Silicon Valley
    Difficulty is in the eye of the beholder. But if you are motivated and stick to it you will progress pretty fast.
     
  13. abda53

    abda53 Newbie

    Joined:
    May 14, 2010
    Messages:
    11
    Likes Received:
    1
    not stupid. He is saying that PHP outputs HTML if you want it to. You can use PHP to do a lot of things without ever outputting any HTML such as outputting JSON or XML or create your own API. You don't need to know HTML/CSS to learn PHP however it is recommended to know HTML just because you are dealing with websites. Technically though you shouldn't need to know HTML if learning PHP because the PHP is logic and it should be separated from the HTML. Same with CSS. You also do not need to learn HTML with CSS. They should be separated. however, it is recommended that you know some CSS and how to position your elements. .NET still uses ASP code. ASP is old. So is PHP. They are both still common but PHP is more common. Personally I prefer PHP over ASP and .NET.
     
    • Thanks Thanks x 1
  14. Tensegrity

    Tensegrity Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 22, 2009
    Messages:
    1,823
    Likes Received:
    967
    You can learn any language with google and a little motivation and patience. PHP is the best place to start (and some javascript). PHP is my jam and has helped me make thousands and thousands of dollars. Thumbs up over here!
     
    • Thanks Thanks x 1
  15. hotdew

    hotdew Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 1, 2013
    Messages:
    189
    Likes Received:
    41
    Location:
    Canada
    PHP is a large world, there are 10 years + pros who admit to still go back to their learning resources when the need arises--what's important is taking the first step, understanding the curve in Programming and upping your game. It's not difficult, you simply need to have the motivation, find the right resources that won't make it look like rocket science and if possible join a community.

    I can't suggest buying books would be the summa for you, some people (like myself) learn better with websites and video tutorials. If you know your forte of learning, stick to it, if it's books buy a well-rounded book (don't get chickened by the size), if it's online resources there're quite a lot to choose from say subscriptions and free ones (depending on your budget). Long story short, hit Google, read the comments on here and in numerous other forums, and you could be scribbling codes in the first month of the new year.
     
    • Thanks Thanks x 1
  16. iBrazilian

    iBrazilian Regular Member

    Joined:
    Oct 10, 2013
    Messages:
    407
    Likes Received:
    210
    I wasn't going to comment here since you've gotten all the answers you needed but PHP is easy to understand as long as you understand the syntax.
    If you're planning on learning PHP, you should definitely learn HTML(5) and CSS(3), as it'll make things much easier for your case.
    HTML could be described as the texture of a design, while the coloring is used from CSS. That's just a simple example.

    It's always good to know many different languages.
     
  17. barigain

    barigain Junior Member

    Joined:
    Aug 23, 2012
    Messages:
    100
    Likes Received:
    12
    When I started learning PHP, I started by writing a content management system. Turns out that it was the worst content management system in human history, but I sure learned a lot. Another friend of mine learned PHP through programming a web based game.
    Point is, try to find something interesting that will keep your attention for a long development process! Then, resign yourself to a very long learning curve.
     
  18. funque

    funque Newbie

    Joined:
    Dec 27, 2013
    Messages:
    21
    Likes Received:
    1
    PHP is not hard to learn. If you know C a bit, you'll be find.

    But the difficulty with PHP, its that you can't JUST know PHP... You need to know these too:

    - HTML
    - CSS
    - Javascript
    - SQL

    They all work together -- in a way -- and with PHP alone, you won't go very far... But if you can learn the rest (or if you already know them), then you'll find it pretty straightforward.
     
  19. Nerevarq

    Nerevarq Newbie

    Joined:
    Dec 23, 2013
    Messages:
    14
    Likes Received:
    0
    I suggest you learn HTML, CSS and JS first then move to php ;)
     
  20. bluehatface

    bluehatface Regular Member

    Joined:
    Oct 19, 2013
    Messages:
    223
    Likes Received:
    93
    Location:
    Here
    C isn't much harder than php. Php is based on C. Thr question is what you want to make. Do you want a web app or desktop app? A web bot / scraper or a game? Or a Facebook clone?

    Your language is dictated by your end product. If you want to make desktop apps php is useless.