For those who want to learn PHP, you can advise the excellent "PHP Tutorial" from the site PHP5.RU
The course is in the process of being written, but now links to individual lessons from it are in various sections of this FAQ. And believe me - it's worth it.
I can't help but recommend the wonderful material by Vadim Tkachenko AKA Bizon "Introduction to PHP and MySQL" . It was even published as a separate book, and now - corrected and supplemented - is posted on the website
"PHP in detail". This resource stands alone. Unlike the previous ones, only a sadist can recommend reading it in its entirety - there is too much information there. but therein lies its charm. This is an inexhaustible resource of PHP information. The only remark - pay attention to the date of writing the article. You should not particularly trust those that were written before 2003.
And, of course, this site
If you haven't read it in its entirety, be sure to do so. Here are the problems that EVERYONE who writes PHP will face sooner or later.

Software.
To work with PHP under Windows, you need to install the following programs:
- Apache web server (5Mb)
- PHP itself (10Mb)
- optional - MySQL (23Mb).
The setup is very simple. Apache is installed by the installer. Where it asks for your server name and administrator email, you need to write localhost and your e-mail 2 times.
PHP is unpacked from the zip to any directory of your choice (by default - C:\PHP) and configured as an Apache module. To do this, you need to perform three steps:
- rewrite the php5ts.dll file to the WINDOWS directory
- in the httpd.conf file (C:\Program Files\Apache Group\Apache\conf\httpd.conf), at the very bottom, add two lines
LoadModule php5_module c:/php/php5apache2_2.dll
AddType application/x-httpd-php .php .phtml

- restart Apache (using the Apache monitor utility in the tray)
After completing all these steps, you can put a test php script(let's say it's called test.php and consists of the line

to the directory that is the root of the web server (by default it is C:\Program Files\Apache Group\Apache\htdocs\) and access it by writing the address in the browser
%20" target="_blank">http://127.0.0.1/test.php

When installing MySQL, select Standard configuration, on the next screen click Next, on the next screen set a password or uncheck "Modify security settings" if you want to leave it blank.
To check, run the Mysql console: Start - Run and copy into the line that appears
"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysql.exe"
or
"C:\Program Files\MySQL\MySQL Server 5.1\bin\mysql.exe" -uroot -pPASSWORD
if the console is started - everything works. Type exit to exit and start configuring PHP's mysql support.
To do this, if you have not done this before, take the c:\php\php.ini-development file and copy it under the name php.ini to the windows directory. Then edit it by removing the semicolon at the beginning of the line
;extension=php_mysql.dll
and editing the extension_dir parameter:
extension_dir = "c:\php\ext\"
can be fixed at the same time
short_open_tag = On
so that old scripts and convenient templates work
and do not forget to restart Apache after that, as described above.
Now you can use mysql in your php scripts.

Those for whom this instruction is too complicated can try to install a ready-made Denver-2 kit.
It includes everything you need at once, and a lot more unnecessary. And most importantly - everything works by itself.
Another advantage of Denver is that the volume of the basic kit is 10 times smaller. full versions- only 4 megabytes. And also the fact that its author writes interesting books on PHP.

Also, all inquisitive people are recommended a VERY sensible article Installing and configuring Apache + PHP
from the site PHP5.RU. And, of course, sections official documentation about installing the appropriate programs.

Forums.
When studying any case, there are bound to be questions.
Questions are easy to ask on the forums.
http://phpclub.ru/talk/forumdisplay.php?s=&forumid=12
PHPclub forum. The most visited and famous. Unfortunately, fame does him a disservice. Very often, a newbie question is answered by an even greener newbie, giving a completely wrong answer. However, there are also plenty of professionals there, ready to explain the mistakes to both the first and second.

PHP is also represented in the Russian segment of Livejournal
In communities Unfortunately, even though they did not shine with the quality of the material, they have long been abandoned by their authors and have finally lost their relevance.
Everything that is best about PHP is listed at the top of the page.
If you know a good site - write about it in the "Feedback" section.

How do you need to learn php, where to start and what you need to pay attention to!? Do I need to learn php from a textbook!?

As for textbooks and learning php from textbooks - if you are studying php in an educational institution, then you simply have no choice! But if you are going to learn php on your own and from a textbook. Then I need to express my point of view!

The textbook is good, but not everything is as good as it might seem! If we take in general the study of something in, for example, school, then how much knowledge was useful in life!? If you are still young. It is very difficult for you to answer this question, but when you have gained some experience, like me, you can safely say that if you use school knowledge by 10%, then this is a victory!

Let's make a small digression and touch on such a subject as mathematics! I took it as an example because it was one of my favorite subjects! For example, the whole geometry - of which I only used cosine 60 in my life - this is early ½ - what was it used for!? I worked at a construction site for almost 10 years - and this is the very cosine required to calculate the rafters at an angle of 60 degrees - this is the optimal number of roof slope in our region and in all others, where the same amount and, or more snow ...

In order not to go deep in simple terms calculation of the base of the triangle from the length of the side (this is the rafters).

ALL! In practice, it is even difficult to remember where geometry was still used in my work.

You can, of course, give a couple more examples when we needed this kind of knowledge, but in any case it is not more than 10.

Why did I make such a long digression - knowledge is good! But they must be in demand, and if you do not use them, then what is the point of this knowledge!?

And here, we just approach the topic of our page! How to learn php in general?

Ask - why do you need php?

You need to set a specific task, as I did in my time - to create your own engine. And as you advance and solve your tasks that will arise in front of you, you will receive only the knowledge that you need!

And the first thing I pursued when I chose just such a way to learn php was elementary savings, because paying a five-figure amount for making a website really crushed me!

Secondly, in addition to the knowledge that I will get when studying php, I will be able to understand what and how it functions in my engine! And studying other people's engines, in which so much rubbish is crammed in, didn’t inspire me at all!, which, again, is used if, by the same 10%, then it’s good.

And that's just when I started learning php on the internet. Then I came across such jokes that people write code that does not work, there is no example of work for the given code. Sometimes such footcloths of code are written that the question really arises - why is there so much code for very simple tasks! Somehow I was looking for an approximate solution to the problem of counting the number of downloads of a file, and found some solution and was genuinely surprised at the amount of code - and moreover, it was copied on all sites given code and like parrots they all chirped the same thing. In general, I reduced the code by 3 times ... and its functionality did not deteriorate in any way.

And it was decided to make just such a site, where material for people with zero knowledge will be placed! And to talk only about what I encountered and what is really in demand to create my own engine. And just at the time of writing this article, our site is in deep processing - we are globally redesigning the entire site and all the content that is needed, I will not repeat, we already wrote here

These are the thoughts that came to my mind due to the fact that our electricity was cut off today. And the only working tool in the whole house is already a rather old laptop. Which is about 5 years old. And no matter how sad it is, it’s impossible to charge it from a power bank, because it doesn’t have such a cord as it is made, for example, on my camera, which I recently purchased.

And a couple more words need to be said about the number of requests on the topic of learning php

PHP Learner's Guides

PHP Learner's Guide - 102 requests per month. Guides are certainly good, but at the top I roughly spoke about what and how to study and why! If you have a lot in your head free space. That of course! There you can “push or, as they say, shove the unimpressible” - unfortunately my brain refuses to perceive information that has a dubious application! And to understand this, you need experience and necessity! Necessity is the biggest driver of learning php. Set a goal, buy and start doing! It is on a live server, and not on any emulators on the computer ... Especially now it is quite affordable! Yes! It might suck in the beginning, but once you get the hang of it, you won't need any manuals!

How did I learn Php!?

Any experience is interesting, and if it is also yours. It will be interesting to talk about it! How did I even come to learn Php? How I studied Php is described in detail on a separate page, of course, it turned out a little chaotic, but nevertheless, this is my story,

Is it worth learning php

Should I learn php - 20 requests per month. If you are asking “is it worth learning php” – there is only one answer! NO! You don't need php, if you're asking this question, then you don't need php at all. When you need php. Then you definitely won’t ask “is it worth learning php”

How to start learning php

How to start learning php - 17 requests. If you really want to learn php, and not just for fun - then the first thing - of course you need to buy! And do not train on, which I have repeatedly said that free hosting is a very dangerous trap!

learn php from scratch

Learn php from scratch - only 9 requests per month. Again, I repeat that you need a server () to learn php and the best thing is a real server and not an emulator ...

Which php to learn

Which php to learn 15 people are interested in such a question, a rather strange question. It seems to me ... because the fundamental changes from php 5 to php 7 are more in the process of being finalized and developed. But this is from the field of innovation and news. But if you really need to know this, then when you buy hosting, then you will find out what kind of php you need to learn and what real situation run by new versions of php. Because it is stupid to study what cannot be applied, as I said above. And we must proceed from what we have.

I'm just talking about what, for example, my php. I specially made a page and a screenshot, what version of php do I have..

Good day, dear readers of my blog. Somewhere I heard that every person in his life must go through writing poetry. The situation is changing and now every second person thinks about writing code and creating their own website. Many merge at the moment, others cannot decide on the engine in any way. If you finish reading this article and move on to learning according to my recommendations, I am almost sure that you will succeed.

The topic is quite complex. Today we will talk about how to write a website in php from scratch. Let's take a closer look at what these cherished three letters mean and you will learn about better ways not only learn, but really understand php.

What is PHP?

It's a little strange to start this article with this question, because it is assumed that you already know everything and therefore are ready for difficulties. But, my blog is for beginners. Be indulgent, let's repeat the information.

In simple and accessible terms, php is a programming language specifically designed to script a web application that runs on a web server. This is a fairly popular programming language, as 85% of websites use it.

The peculiarity of this language is that it is universal, easy to learn and opens up your opportunities not only as a programmer, but also as a businessman. As a result, you will be able to write and develop your projects on your own. Without anyone's help.

We study effectively

Many began to learn this language, but few reach the end. For effective learning, the first thing you need to do is find a source of information, a book, a tutorial or a video, but more on that later.

Then we need to download the compiler. This is a program that reads your script line by line as a statement and executes it.

The most common compiler is denver - simple and free package desired programs with which you can write scripts. If you ask my opinion, then I would advise you to download Open Server. He's gaining momentum now. It is a head taller than Denver and will be more comfortable for you to work in.

What do these packages do? They allow and work on it as on a server. It is not necessary to download anything right now. You will hear more than once about useful software from this series in any training course, but you will need it.

The essence of effective learning is that after going through the lesson, you should try to put everything into practice. If theory is supported by practice, then in a few weeks you will have a basic language skill.

Books for learning

Let me tell you, I am not a fan of books. When it comes to internet technology. It's like explaining to a Masai man what wi-fi is. No drawings will help to understand everything normally. Nevertheless, I want to provide you with a small list of php books for dummies that are listed among professionals.

I would like you to really achieve your goal and if it seems to you that this training option will suit you better, I will be happy to provide information.

PHP and MySQL. Web application development This is a great book for a beginner. First of all, the author will show how to set up Apache (HTTP server), PHP and MySQL (database), then he will tell you how to choose a code editor. The book covers: the syntax of the language, the most useful features, creating your own engine and a number of other functions.


In general, nothing surprising is not it? But nevertheless, it is a real textbook with unique information that you will not find anywhere else. This is the fifth edition, so there will be no outdated information. The book was released in 2015. In order to start to get acquainted with the code yourself - that's it.

HTML, JavaScript, PHP and MySQL. Webmaster's Gentleman's Set - This is a more detailed tutorial on learning php. It touches on several other useful ones, without which the full creation of web applications is impossible.

Easy to read, suitable for self-study and student learning. The author touches on such topics as: the basics of php, dynamic page formation when CSS help(cascading style sheet), database administration, creation dynamic pages using JavaScript.


We create dynamic websites with using PHP, MySQL, JavaScript, CSS and HTML5 - I would recommend this book to more advanced readers who already have basic HTML layout skills. If you have ever studied this and still remember the basic principles then this book is for you.


PHP and MySQL. From beginner to professional - and the book of Kevin Jank completes our review, in which the author makes a strong bias towards creating web applications with a database.


The book is very easy to read and is perfect for self-study.

YouTube video

From my own experience, I will say that learning php from YouTube videos is quite difficult. Even though they seem simple. Unlike the Photoshop tutorials that I love, learning programming languages ​​on YouTube is simply impossible. Even a video that is only 15-20 minutes long causes a lot of inconvenience.

Such videos can discourage you from typing the code yourself. Why, if the author has already done everything for you: typed, launched, pointed to specific example how does everything work? As a result, remembering something is almost impossible.

Tutorial

In my opinion, this is the perfect learning experience. It's great to have an expert with you.

Each lesson is accompanied by comments, you can ask questions to experts, calmly discuss and solve incomprehensible points. You don't have to surf the internet looking for information. Everything will be chewed and put in the mouth, all that remains is to use it.

You will be given a task and will be monitored to see how well you perform it.

I can recommend you course on netology . This training center is valued among professionals, and in just two months you can learn everything you need. Sets in the group occur constantly.

Don't worry if you don't understand something. That's what the course is designed for you to learn. This is real step-by-step instruction for newbies. Don't believe? Download full program course from the official website and you will be convinced of this.


If you dream of learning how to create sites without, on your own and in php, then this is the best option for you.

From the author: in world wide web physical strength means nothing! You can press the keys with any force, but the result will not change. On the Internet, the one with more experience and knowledge is considered stronger. Although my friend “pumped up” the hardware of his PC so much that he became afraid of it! But this is with everything from the "iron" opera. And today we will find out in PHP where to start learning to become a strong programmer.

"Tea" disease

Of course, sorry, but you are a "teapot". How did I guess? Well, because only beginners ask themselves such questions. And there is nothing offensive in this “title”, because you have so much desire for learning that you can “boil”. And this is a sign that everything will work out!

The study of PHP, like any other science, should be started from the very beginning, that is, from the theory. You need to understand what this programming language is: its capabilities, main scope, features, and so on. This is an important aspect, since beginners, due to the lack of basic theory, general ideas about a particular language, often make the wrong choice. And after that, with deceived expectations, they quit training after several hours of “research”. I will try to lift this veil a little so that you understand not only where to start PHP learning but also why.

A few features of the language that beginners should know:

Most often, PHP is used in website building, but it can also be used to develop client applications.

It is a server-side language - its code is executed on the server side, so you will need a local server or an appropriate assembly to learn.

Close relationship with - if you are going to “storm” site building, you will also have to learn the specified DBMS. We will help you with this.

Where is the beginning?

If you are going to learn PHP programming, but don’t know where to start, then this section is for you. You should start with the basics: with the syntax of the language, data types, variables, their initialization, loops, function declarations, etc. Even if you studied all this in other software disciplines, you will have to read it again, since PHP has a number of features.

But it will be later, but initially you need to decide on the main literature for comprehending software science. The choice of sources should be approached very seriously.

Choose a few, and read a couple of pages from each. The presentation style of the main source should be as simple and clear as possible. The success of education as a whole depends on this.

To comprehend PHP, you can use various tutorials, specialized manuals for "dummies". It would be nice to add one or more sensible ones here: the visualization of information significantly increases the assimilation of the material. But once again I repeat: where to start learning PHP and the choice of sources is up to you.

A little personal

In general, after the first semester, in terms of academic performance, I slipped to the very bottom. And all because the teachers, seeing that most of the students "swallow" all the material, even "not chewed", tried to give as much as possible. But I did not have the experience that my groupmates had.

The next semester, I transferred to a parallel group consisting of the same “dummies”. For them, the teachers “bited” and “chewed” everything, carefully explained. Here things went "on the mend", and I again became one of the best students.

I am not boasting (well, maybe a little), but I am trying to explain that you should choose the style of learning, methods of obtaining information and the duration of comprehending the discipline for yourself. In my opinion, various are the ideal source educational information. Their selection is what you need to start learning PHP from scratch.

What you need to start development

PHP is a programming language whose code is executed on the server side. Therefore, for local work with it you need the appropriate software. Three main components:

PHP interpreter.

local server.

But installing each of these components can take a lot of time and effort. Especially if you are a beginner. The best option is to install a software package that includes all the components.

I recommend using Open Server. It includes everything you need to get started with PHP without much headache. The installation process is automatic (easy and fast). Just what you need for real "dummies".

I hope I managed to dispel all the doubts and questions that "haunt" newcomers. Do you feel like you've gotten stronger? You are just getting started with PHP. Soon you will be real "strongmen" in the software sciences. See you for new workouts!

12/17/14 12.6K

There are such disciplines in web programming, the basics of which any person connected with the World Wide Web must know. Therefore, one way or another, you will have to learn PHP and MySQL. And if you don’t want to, then greed will force you anyway:

Why learn php and MySQL?

Such a question can only be asked by those who are not at all familiar with the specifics of building a web space and its modern basis. Any more or less knowledgeable person in programming will tell you that these two disciplines are currently dominant on the World Wide Web. This means that almost the entire Internet is built on PHP based and MySQL:


Though the importance of PHP has decreased a bit in our time. And all because of the large number of engines that (ironically) are also built on the basis of this language.

In the modern web world, engines are understood as any content management system (CMS). Most of them are written in PHP and MySQL.

Each CMS is program framework equipped with user interface. Its toolkit greatly facilitates the process of site administration. But then why bother learning PHP from scratch? After all, you can simply go to the administrative part of the resource and perform all the manipulations using the tools built into it.

To begin with, not many people have the patience, time, or energy to learn PHP and MySQL. A person must come to this on his own. But the one who dares to comprehend these disciplines will receive:

  • Demanded profession - smart programmers have always been in great demand in the labor market. But even inexperienced beginners with a good theoretical knowledge of PHP and little experience in web programming will be able to find a job with decent pay;
  • Remote work - in order to engage in programming, it is not necessary to get up early, get to work and follow the dress code. All this can be left behind the threshold, and create programming code sitting at home in room slippers;
  • Saving money - if you are a website owner, then of course you know that the services of professional web programmers are expensive. And for a beginner on the Internet, every penny is precious. Selfeducation MySQL and PHP will save money and put them on track.

As already noted, most modern engines are based on PHP. Although their fault tolerance is at a high level, no one has canceled the influence of the human factor. Therefore, the CMS code sometimes behaves differently than the web programmer intended.

And to correct this mistake, you need to look for a specialist, pay him a lot of money. And then it turns out that the whole snag was just one line of code, which could be easily fixed even with knowledge of only basic PHP fundamentals.

  • An interesting hobby - web programming is not only a means of making money or saving money. It is also an exciting activity that combines both a technical and a creative component.

Learning PHP and MySQL can be a means of self-expression for many.

What is PHP

PHP is a scripting programming language. It is most often used to create web applications and web services. Given language supported by most web hosts. On its basis, the main part of dynamic sites is written.

In a dynamic site, unlike a static one created only on html, the content of all pages is formed in response to a user request. The structure of the resource is formed based on the template files, and the content is (most often) loaded from databases.


The popularity of PHP is due to its following characteristics:
  • Support for most popular DBMS ( Database Management Systems);
  • Automatic sending of HTTP headers ;
  • Built-in support for working with sessions and cookies;
  • Tools for working with remote files;
  • XForm support ( forms based on XML);
  • Approximation of PHP syntax to the C language;
  • Lack of strong typing – variables are typed dynamically.

Data types are where you start learning PHP

  • OOP support ( object-oriented programming);
  • A large set of superglobal (predefined) arrays designed to work with web space.

What is MySQL?

MySQL is a free DBMS from Oracle. Together with free version development and commercial releases under the order. It is thanks to this that all new developments of the corporation are necessarily introduced into free editions of the DBMS:


Features of MySQL DBMS:
  • Support for the data replication mechanism since the first releases of MySQL.

Replication is the process of synchronously copying all changes of the source on several of its instances at once. That is, any action on the data of one copy of the object will be reflected in all its other samples.

  • Work is supported both with local sources and with remote ones;
  • Built-in support for a large number of table types. And thanks to open source the list of supported table types is growing;
  • Wide range of cross-platform;
  • Database table size MySQL data limited only by the possibilities operating system on which the DBMS is deployed;
  • Support for most popular programming languages ​​via API ( application interface).

More detailed information you can learn about the capabilities of the DBMS from any tutorial or reference on MySQL.

Where to begin?

From the bitter experience of many beginners, we can conclude that the main problem of self-learning PHP and MySQL is choosing the right one. software. And all because PHP is a server-side programming language. Therefore, to test the code, you need not only a special editor, but also a local server:


A few best options:
  • Apache HTTP Server - can be downloaded from the official website of the developer;
  • Denver is the best option for installation and further use. The installation package includes the Apache server, PHP and MySQL. In the first option, you would have to download and install all this separately.
  • XAMPP is a suite that includes PHP and MySQL. As well as the built-in PHP tutorial: