PHP/Script Basics

by 7 replies
8
:confused: Can you fellow warriors recommend a book that covers php/scripts in a language and manner that non-programmers will understand?

Something that gives the basics so at the very least I can understand the process, be able to tell programmers what I want, and be able to troubleshoot malfunctioning scripts.

Thanks.
#programming #basics #php or script
  • Beginning PHP 5 and MySQL: From Novice to Professional is one I own, and although it covers many advanced subjects, the book begins with an introduction to key, and basic programming principals, which would probably be helpful to non-programmers.

    Before you buy a book, you may considering taking the tutorial here:
    PHP Tutorial
    If you're like me, having a book can be helpful, however, since they are so much easier to read. You should also be aware that PHP's official site has extremely thorough documentation:
    PHP: Hypertext Preprocessor
    • [1] reply
  • I agree SitePoint is an excellent resource. I have a whole wall of there Blue and Orange books.
  • Ahhhh, actually, it's pretty easy.

    Hmmm, I've been a programmer since I was in elementary school. Aside from the programming language itself - I mean generically and not language-specific, you need to know 4 things to start using PHP and referring to some language reference book frequently. PHP has way lots of inherent functions and libraries to fulfill any tasks you can imagine, thousands of them. But DON'T PANIC because even the greatest of PHP developers can't remember them all and it's not for us to remember after all.

    The 4 things are:

    1. Codes are executed line by line - fair enough, as we do things one by one, one after another, in natural sequence.
    2. Codes make choices upon given conditions, executing some branching codes upon condition 1 while executing the others upon condition 2. So basically, execution branching on conditions.
    3. Codes repeat things that are repetitive, executing a certain group of codes again and again until some condition is met.
    4. Codes can be grouped - modularized. In parlance, code modules can be functions, classes and even structured library. A group of code, or a module needs some input to produce output.

    That's all. Programming is not that hard. PHP is the right choice for a beginner, it's super easy and straightforward to catch on.
    • [1] reply

    • spoken like a true programmer.

      I am not a programmer at all, however, I have learned how to read and understand php for the most part.

      I teach people how to use and install php scripts like bulletin boards, blogs, etc and, I write instruction manuals etc. I have to say that anyone not familiar with php would not have understood a single thing you said.

      I am not trying to be rude here at all. I am just making the point that when a programmer says " oh, it's easy", and then starts explaining it, it is usually greek to non-programmers.

      just an observation.


      robert
  • OR:

    1. Code only does one thing at a time, one after the other
    2. It can make choices based on yes or no answers (BOOLEAN LOGIC IS WHAT TRIPS MOST PEOPLE UP)
    3. It can loop and do the same thing repeatedly until a choice is correct (count, or compare)
    4. You can take a bunch of code and wrap it in something else so you can use it in many places without caring about how it does the job.

    Classes can be particularly hard to explain, but the other stuff is generally OK. Gets harder again when you introduce event handlers and threading though.
    • [1] reply
    • Har har... that's for sure. Rule of thumb: never try to explain Object Oriented Programming to a non-coder... It's even hard to explain to some programmers.

Next Topics on Trending Feed

  • 8

    :confused: Can you fellow warriors recommend a book that covers php/scripts in a language and manner that non-programmers will understand? Something that gives the basics so at the very least I can understand the process, be able to tell programmers what I want, and be able to troubleshoot malfunctioning scripts.