In PHP too many resources, Google to the rescue.
The main thing to remember:
There are two computer:
The server that hosts the website and all its data
Customer - a visitor's computer.
PHP - working with data on the server, generates a response to the client request;