Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 14 of 14
  1. #1
    New Coder
    Join Date
    Aug 2012
    Posts
    48
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Advice about learning PHP

    Hi. My names Blake and I'm attempting to learn PHP atm. I know html/cs and some javascript, but my primary focus is on front end graphical design and interactive user interfaces through js/jquery.

    I'm new, so I know very little about the overall system of the internet and web hosting, databases and so on. But I'm learning slowly. Right now I know if I want to create competent websites for people I need to learn php to create dynamically adjustable websites for the individual user. (Yes, I have a poor understanding of the powe of PHP atm)

    I however am at a cross roads. I need to learn and understand php because I want to make my sites really relate to the individual and have them be able to create user accounts and actually "build" in and ontop of the site. So I've taken up learning PHP. And it's a pain. It's not just "another language", it's "ANOTHER language" and I am hitting walls so fast when I'm going through these books. Right now I've switched to a newer book because the one I was using was too old. http://store.kobobooks.com/en-gb/boo...00aNH40O0q7FAA


    I'm just curious if anyone who professionally understands PHP or who is studying it can perhaps share some tips or advice on learning the language. Right now I'm focusing 100% on it but it's very challenging for me, and the deeper I go sometimes I lose interest because I'm having trouble associating the specific tool to the end applications. These books offer very little workshops. Do you think it's a good idea to mix and match random tutorials online with these books? I want, or should say need to understand this language 100% because I need to offer people an honest and trusted service.

    Idk.. just looking perhaps for a little two conversation on it. Gets lonely in the dark with a php book. It's surely not colourful unless I fill in the gaps and I'm still rumaging around on the basics :|

  • #2
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    4
    Thanks
    1
    Thanked 1 Time in 1 Post

    Steps to learn PHP

    Hi dear, As you really know that PHP has become the most preferred language for developing user friendly sites in the IT Industry. It's a booming language today. It is good to learn PHP. It is not much difficult. You can easily learn it. First try to clear you basics of PHP. You can visit w3schools on google to learn core & advanced PHP. I am sure it will help you much. I am regular visitor to this site and learn from this site. You may download PHP pdfs online from google for more detailed information. If you need more I am help to help you.

  • #3
    Regular Coder
    Join Date
    Aug 2013
    Posts
    181
    Thanks
    8
    Thanked 0 Times in 0 Posts
    To whom is this concern i am new user here how can post my problem on the forum.

  • #4
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    First thing: I would NOT recommend W3Schools... in fact, the opposite. W3Schools is well known to have outdated/wrong information, and does nothing to correct it, even when its pointed out. It is a horrible resource as far as I'm concerned.

    That being said, my first piece of advice when learning programming is not to learn how to program PHP, but learn how to program. Pick up a basic book on any programming language, and go through it step by step, looking at the LOGIC behind each step rather then the actual language that's used. If you learn how to program, how to think logically, you can pick up any language easily, and switch between languages with relative ease.

    Obviously with your first language, you'll be learning through that language, and PHP is nice because you don't need a compiler.

    The first thing you'll want to do is setup a WAMP or LAMP based on your OS (Windows Apache/MySQL/PHP or Linux Apache/MySQL/PHP). This'll let you program locally, so you don't need to fret about a server. Its sufficient for basics out of the box.

    Once you find a book that will teach you the basics (variables, arrays, scope, functions, loops, etc), you'll want to look into methodology. For example, if you're repeating the same code 5 times on 5 pages, maybe instead, you want a function.

    And in the end, I've always found the best resource is to just program. Pick a project, such as making a calculator. Write out some basic HTML and start doing the PHP. Google a question when you are stuck and read other people's code. Stick around sites like these and read people's questions and answers. And always ask questions: you will never stop learning in a field like this.

  • #5
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,031
    Thanks
    23
    Thanked 589 Times in 588 Posts
    I would recommend W3Schools. The nay sayer here never provide any proof to the "is well known to have outdated/wrong information" line. W3Schools uses a well organized, step by step method of teaching. You will learn the basics there. It is the first place I go to obtain information about any programming language. Then you can use an other site to fortify your knowledge like Codecademy.

    Keleth is correct about setting up a WAMP or LAMP. I use WAMP. http://www.wampserver.com/en/

    Then start doing projects. Reading the answers on this site is a good way to learn. Write out the answers and play with th results. Try to answer some ones question.

    If you run into a wall ask question here.

    Good luck and have fun.

    Php manual is here http://php.net/manual/en/index.php with a getting started http://www.php.net/manual/en/getting-started.php
    Last edited by sunfighter; 08-27-2013 at 04:59 PM. Reason: Added links to manual
    Evolution - The non-random survival of random variants.

  • #6
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Quote Originally Posted by sunfighter View Post
    I would recommend W3Schools. The nay sayer here never provide any proof to the "is well known to have outdated/wrong information" line. W3Schools uses a well organized, step by step method of teaching. You will learn the basics there. It is the first place I go to obtain information about any programming language. Then you can use an other site to fortify your knowledge like Codecademy.
    Their teaching methodology is not in question, its the accuracy of their information. They have so much, some of it is rarely updated and is out of touch with modern methods. It's like learning modern history from a book written in the 80s. Sure, you'll learn, but then once you get going, you have to relearn anyway. And frankly, I think MDN and other similar sites offer a better approach to teaching, rather then it being code examples, offering explanations of what you're doing.

    W3Schools simply produces coders, people can look stuff up and regurgitate it. Other sources do a much better job of teaching it. There are entire lists of content of W3Schools that needs updating; I'm at work so I don't have the URLs on me.

  • #7
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,031
    Thanks
    23
    Thanked 589 Times in 588 Posts
    I hate hijacking posts and normally try to stay out of this debate, but your trying to defend something that is just wrong; condemning something without proof. More importantly condemning something that is good without proof.
    Quote Originally Posted by Keleth View Post
    Their teaching methodology is not in question, its the accuracy of their information. They have so much, some of it is rarely updated and is out of touch with modern methods. It's like learning modern history from a book written in the 80s.
    Again saying the same thing but no examples. And what site is totally without something wrong or out of date at lest for a little while? And in this, our case, what php lesson is wrong on W3Schools?

    Quote Originally Posted by Keleth View Post
    Sure, you'll learn, but then once you get going, you have to relearn anyway.
    Baloney!

    Quote Originally Posted by Keleth View Post
    And frankly, I think MDN ....
    MDN is not for beginners.


    Quote Originally Posted by Keleth View Post
    W3Schools simply produces coders, ...
    And that's what it's all about. What else do you think they should be doing?

    Quote Originally Posted by Keleth View Post
    Other sources do a much better job of better it.
    This is an opinion and not a fact. There maybe better better sites, but that does not give you the right to condemn this one or say don't use it. If that were allowed you'd have to find the perfect teaching site and condemn all the rest, not just one.

    Quote Originally Posted by Keleth View Post
    There are entire lists of content of W3Schools that needs updating; I'm at work so I don't have the URLs on me.
    And this is what this post should have been about; what's wrong on W3Schools. But I don't want to see URLs. I want to see links to W3Schools PHP lessons that are wrong. I think you could do that from work, because it's about what you are condemning on W3Schools about PHP and not something in a list on someones URL.

    You started off saying "Their teaching methodology is not in question," and that is why I recommend them. They have a no frills, step by step method of teaching. They lay the ground work and build on it.
    Evolution - The non-random survival of random variants.

  • #8
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Quote Originally Posted by sunfighter View Post
    And that's what it's all about. What else do you think they should be doing?
    Teach how to code, not how to regurgitate commands. Teach why as well as how. I've found people don't retain an interest or grow as developers nearly as well when they're simply told commands; learning where to use them, how to use them, are all important factors in programming.

    Quote Originally Posted by sunfighter View Post
    This is an opinion and not a fact. There maybe better better sites, but that does not give you the right to condemn this one or say don't use it. If that were allowed you'd have to find the perfect teaching site and condemn all the rest, not just one.
    Actually, that certainly does. I said I don't recommend W3Schools, thus saying, it is my opinion that it is not worthwhile. I have every right to speak against a source I believe does not teach well. Just like you can recommend it if you think its good. Unless you think only negative opinions should be censured...

    Quote Originally Posted by sunfighter View Post
    And this is what this post should have been about; what's wrong on W3Schools. But I don't want to see URLs. I want to see links to W3Schools PHP lessons that are wrong. I think you could do that from work, because it's about what you are condemning on W3Schools about PHP and not something in a list on someones URL.
    And as I said, there are entire lists of what is wrong with W3Schools. I don't go around memorizing dozens of URLs just to put down one site. I'm at work and don't have access to the information about what's wrong with W3Schools, because its on my personal computer. I don't have the time, while at work, to sit here and search for all the examples. I'm not sure what you do at work, but currently, I'm working, taking a minute or two between coding, to come here and help where I can.

    Quote Originally Posted by sunfighter View Post
    You started off saying "Their teaching methodology is not in question," and that is why I recommend them. They have a no frills, step by step method of teaching. They lay the ground work and build on it.
    And frankly, I think what they teach is as important as how they teach it.
    Last edited by Keleth; 08-27-2013 at 05:44 PM.

  • #9
    New Coder
    Join Date
    Aug 2012
    Posts
    48
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Hi. Thankyou very much for your posts, it's encouraging to say the least
    I really don't know how to rate where I am at in the coding world, but like I said I know html/css and to a degree a portion of js/jQ.

    In regards to wc3, I used them more for generic reference, but I find the key concepts are sorta blurred or even excluded on the website. And since there is no test out code section on there for the php section I've chosen to start reading books instead. This is the book http://www.bookdepository.co.uk/book...FQTHtAodDEsADg

    To continue I love the juice of concept rather then copy and pasting 1 tried string of code. I've found that if I understand the core basic of a particular code concept I can apply it to multiple situations appriopriately instead of seeing a blunt 1 time application for it. That's what I'm trying to learn. Ill try not to ramble.

    Quote Originally Posted by juschan45 View Post
    Hi dear, As you really know that PHP has become the most preferred language for developing user friendly sites in the IT Industry. It's a booming language today. It is good to learn PHP. It is not much difficult. You can easily learn it. First try to clear you basics of PHP. You can visit w3schools on google to learn core & advanced PHP. I am sure it will help you much. I am regular visitor to this site and learn from this site. You may download PHP pdfs online from google for more detailed information. If you need more I am help to help you.
    Hi juschan. I suppose it can't hurt to look at wc3 I think I have an ok understanding of the basics for programming language. I think... Right now I'm trying to understand the end applicationg of PHP. It's confusing because I'm not sure what features companies want that requires PHP. I can understand they might want user input to be stored and catorgised. Like a forum for example. User accounts that affect each page, and store the events that the user does, perhaps make these events interact with other user accounts to create dynamic responses between accounts. As you can see I have a fuzzy understanding of it's application.
    But yes, I have a php book I am running through. Thankyou very much for the offer, I might take you up on that if I hit some walls

    Quote Originally Posted by Pearl_9 View Post
    To whom is this concern i am new user here how can post my problem on the forum.
    Hi Pearl Pretty straight forward, if you know what programming language your problem relates to, find that forum and then create a thread about your problem. Even if you're not sure what it is, just try to describe it as best as you can.

    Quote Originally Posted by Keleth View Post
    First thing: I would NOT recommend W3Schools... in fact, the opposite. W3Schools is well known to have outdated/wrong information, and does nothing to correct it, even when its pointed out. It is a horrible resource as far as I'm concerned.

    That being said, my first piece of advice when learning programming is not to learn how to program PHP, but learn how to program. Pick up a basic book on any programming language, and go through it step by step, looking at the LOGIC behind each step rather then the actual language that's used. If you learn how to program, how to think logically, you can pick up any language easily, and switch between languages with relative ease.

    Obviously with your first language, you'll be learning through that language, and PHP is nice because you don't need a compiler.

    The first thing you'll want to do is setup a WAMP or LAMP based on your OS (Windows Apache/MySQL/PHP or Linux Apache/MySQL/PHP). This'll let you program locally, so you don't need to fret about a server. Its sufficient for basics out of the box.

    Once you find a book that will teach you the basics (variables, arrays, scope, functions, loops, etc), you'll want to look into methodology. For example, if you're repeating the same code 5 times on 5 pages, maybe instead, you want a function.

    And in the end, I've always found the best resource is to just program. Pick a project, such as making a calculator. Write out some basic HTML and start doing the PHP. Google a question when you are stuck and read other people's code. Stick around sites like these and read people's questions and answers. And always ask questions: you will never stop learning in a field like this.
    Yes! This is what I want. I found I can find ways of getting what I want, but what good is using a string of code if I don't understand what the heck I've written. How many pieces are there, their breakdowns, maybe there's a more effiencet way of executing it. Am I creating redundent coding ect. This is basically what I'm trying to do. The flash comes last and I can generally do most of that on the client side already. But I want to create the bridge so I can create a trult more dynamic user interface, and I defiantly want to understand the general basics because I believe those shape everything else. I've got a apache server setup with msql, so right now it's just dealing with php.

    Quote Originally Posted by sunfighter View Post
    I would recommend W3Schools. The nay sayer here never provide any proof to the "is well known to have outdated/wrong information" line. W3Schools uses a well organized, step by step method of teaching. You will learn the basics there. It is the first place I go to obtain information about any programming language. Then you can use an other site to fortify your knowledge like Codecademy.

    Keleth is correct about setting up a WAMP or LAMP. I use WAMP. http://www.wampserver.com/en/

    Then start doing projects. Reading the answers on this site is a good way to learn. Write out the answers and play with th results. Try to answer some ones question.

    If you run into a wall ask question here.

    Good luck and have fun.

    Php manual is here http://php.net/manual/en/index.php with a getting started http://www.php.net/manual/en/getting-started.php
    Thanks for the info I'm going to pile through this book first then rehash I think. I'll make it a point to hit up wc3's php side. Good or bad it is a well known coding website of information and I think it would be of some benifit to see how things are presented from their end.

    Thanks for the replies again

  • #10
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,031
    Thanks
    23
    Thanked 589 Times in 588 Posts
    @7Blake Glad you found what you want.

    @Keleth no examples. We're done here
    Evolution - The non-random survival of random variants.

  • #11
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Its fine sunfighter, I don't need your validation. If you can't wait till I'm home from work to have a civil discussion, I don't see why we should discuss it anyway. Given you think I'm not entitled to expressing my opinions, I don't really care much for yours either.

  • #12
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,031
    Thanks
    23
    Thanked 589 Times in 588 Posts
    Ok I can wait. Guess you can scan codingforums.com at work but not http://www.w3schools.com/php/default.asp I'll wait. And if you want to save others on this site from our discussion you can send me a PM. And this is NOT about who is right or wrong and certainly not about validation. It's trying to get you from saying things like this:
    I would NOT recommend W3Schools... in fact, the opposite. W3Schools is well known to have outdated/wrong information, and does nothing to correct it, even when its pointed out. It is a horrible resource as far as I'm concerned.
    without proof.
    Evolution - The non-random survival of random variants.

  • #13
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    Quote Originally Posted by sunfighter View Post
    Ok I can wait. Guess you can scan codingforums.com at work but not http://www.w3schools.com/php/default.asp I'll wait. And if you want to save others on this site from our discussion you can send me a PM. And this is NOT about who is right or wrong and certainly not about validation. It's trying to get you from saying things like this: without proof.
    All of which is fair criticism, and I'll be more careful about how I phrase it in the future, but again, a few minutes to peruse coding forums is far different then spending the time to find the problematic points of W3Schools... one takes minutes, the other can easily eat an hour.

    And I suppose I took the most offense because you said I have no right to say its a bad site, which couldn't be further from the truth.

  • #14
    Regular Coder
    Join Date
    Aug 2013
    Posts
    181
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Pearl_9

    How recovery deleted date from php mysql database.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •