This article does not teach you to program and create a PHP script, but simply displays the correct path. I will try to tell you about how to properly teach the language (in principle, this would apply not only to the PHP script). About syntax and functions, I will not tell - no need to. There are articles in which this is all very well laid out. I will try to give the most best links to tutorials and help to create a
simple PHP scripts.
First, a little theory.
PHP - a scripting server-side programming language, whose code is inserted directly into the html-code. "Father" PHP is Rasmus Lerdorf. At the moment PHP stands for "PHP Hypertext Processor", although originally "Personal Home Page". Let me give a small example insert php script in html-code:
print "Hello world!";?> title>
Html>
As a result, a message "Hello world!" will be displayed in the window title. It's very simple. This, hopefully, clear. Moving on ...
As you understand, it's an unnecessary feature, because the message "Hello world!" can be derived without AF script. But in php you can do much more than you can imagine. Much.
In fact, even if you've never tried to program, it will still not hard, though, if you teach math in high school. I think so. When compared with languages such as Perl or Java, PHP - the language is fairly simple. It was created to develop small applications, so nothing complicated about it. Well, if you already have some experience (eg, programming language Pascal), then you will be even easier.
If you want to learn how to program in PHP, just find a good tutorial (or even better buy, if funds permit) or a free PHP scripts for example. The most important thing in this case - it is good, and besides one. No need to "pulverize", as he did, when I became acquainted with this programming language. One textbook that you just read for information, directory functions, which you will use in the preparation of scripts, and, of course, forums and friends who know PHP. That's it! The most important thing in this business practice. Do not reread all the articles that you are caught in the web - only to lose time in vain (although the theory is, of course, necessary). Just practice - this is the most important thing in this case. Something does not work - ask for a dedicated forum.
Well, now, and links to the documentation itself. The best documentation, in my opinion.
www.php.net - official site.
www.php.net/manual/en/ - documentation in English.
Loading...