What is php?How PHP Works?

What is PHP

PHP is a dynamic, interpreted scripting language for building interactive websites on the server. Despite the haters pronouncing it dead, it remains one of the most popular languages for back-end web development. It powers content management systems like WordPress, top-tier websites like Wikipedia, and countless others via frameworks like Laravel and Symphony. Hell, even Facebook uses it, although they built a custom compiler to convert it to machine code on their servers.

It was created in 1994 by Rasmus Lyrdorf to manage his personal home page. clever acronym, but it sounds lame for a language that powers multi-billion dollar enterprises, so today we practice cognitive dissonance to tell ourselves

PHP stands for hypertext processor. It has a special place in history because it predates JavaScript and was one of the first languages to be embedded directly in HTML, allowing websites to be built dynamically on a server.

It's open source and was one of the technologies that revolutionized the web by making application development accessible to the average person.

How PHP Works

How PHP Works

  1. From your PC or a laptop, you make a page request here across the web, and that arrives in a data center somewhere, which could be in the UK. It could be in Europe, or it could be in America, or it could be in Asia somewhere; it doesn't matter where it is because your request will be routed there.
  2. The actual hardware that the software runs on is called a web server, and the actual software is called the web server. But let's say we've got our Apache web server here, and Apache is the software that is one of the most common.
  3. Apache intercepts the page requester and says, Okay, fair enough, you want a page; I'll build it for you, and the first thing it does is retrieve the html page, or it could be called a PHP page, but essentially the page will be a combination of html and PHP code.
  4. apache retrieves the file anyway from the file system, and as it goes through, the file says OK, right? There's some code in here, and I need to execute that code, so apache has a PHP plug-in.
  5. It uses our PHP plug-in to replace the code with the results of running the code, so an example would be if there's a MySQL database with a swimming database, the PHP code may actually retrieve a list of swimmers or a list of swimmers who did well at the weekend in a recent event or something like that.
  6. It runs Apache, which runs all the code and renders the page with the results of the queries to the database in this example, and then sends it back to your PC or a laptop so that you get the complete page with the results of any queries and the results of running any code, and so it's fairly straightforward.

You've got your webserver and software here; it loads in the files. If there's any code in the files, the PHP plugin is used to interpret that code, and sometimes the PHP will make queries to a database and return the results back.

 The top 3 free online courses to learn PHP

top three free online courses to learn in Disclaimer


PHP disclaimer These courses are free with the first amount of free access on each website for new users.



Functional programming with PHP linkedin learning This is suitable for advanced levels. It's two and a half hours long, it's taught by an expert full-stack developer, and it offers a certificate of completion.



 for building database applications in PHP. This course is suitable for intermediate-level students.

It's 24 hours long; it's taught by a professor with a 4.8 rating on Coursera; it offers financial aid; and it also offers a certificate of completion.



PHP getting started by plural side This course is suitable for beginner level; it's three and long; it's taught by a Microsoft VP with eight courses on pluralsight; it offers a free 10-day trial; and it has a hands-on project that includes.

Should you learn PHP?

Yes, see, I know it's a very old language. And nowadays, with so many new programming languages and so many technologies, frameworks are here with awesome features, but old is gold. No, I mean, it works in all browsers, and it is compatible with a lot of operating systems, including Windows and Unix. PHP likes everything, and the beauty of it is that it's open source and almost free to use, and the community is also pretty good.

Post a Comment

Previous Post Next Post

نموذج الاتصال