As you are here I assume you are using Internet for some while now and you want to know now how to create webpages in PHP. Before we start with this I want to show you on basic level how your webpage is sent to your browser.
Webpages are using protocol named HTTP. It means Hypertext Transfer Protocol. Goal here is to send HTML documents between server and client machines so your browser can render this documents as a pages with colours, images etc. This is also your first goal as a programmer – to create HTML document on the server and send it back to the client. It’s called Response.
Client asking for webpage is also sending additional data. All of them we are calling Request. It contains query parameters, which you provide in the URL, request parameters which can be sent via form and headers which are identifying what’s the client (operating system, browser, sometimes additional data).
In simple words – you are getting question and you have to provide answer for it. And that’s how PHP works.
In next articles I’ll show you how modern PHP is done. I’ll use Silex framework and MySQL database. If you want to learn how to write PHP as a language check CodeAcademy. In this tutorial I want to put more focus on how use the PHP language than on what it is.
Anyway. If you have any questions put them into comments and I’ll bet back to you as soon as I can.