<b>Hello</b>
Back-end
Web Developer

A programming language is for thinking about programs, not for expressing programs you’ve already thought of. It should be a pencil, not a pen.
If you want to learn more
Scroll Down

<projects >

o

Don’t write bad code – rewrite it.

123

<clients>

First, solve the problem.
Then, write the code.

o

<quotes>

<learn more>

How does PHP work? The function of PHP in WordPress

If you dedicate yourself to designing simple static pages and their content will not change very often, you can manage with just HTML. An example can be a business website that shows data about the company, its location, recent jobs, means of contact, etc. All data is almost constant. But how PHP works? Each visitor who enters said website will process the HTML code through their browser and will be able to view all the content.

Now suppose that the company decides to add a blog on the web, something that will benefit the interaction with its customers. Will we solve it with HTML? It is a possible solution, but keep in mind that every time new content is uploaded, you will have to enter to modify the web code to make the updates. Keep reading how to evolve snom.

We need that the updates (for example, new blog posts) are stored in a database, and then the frontend shows them without touching any code. Well, that’s exactly what PHP is for and how it works.

How does PHP work?

Every time a user visits a website written with PHP, the following happens:

  • Upon entering, a request is sent to the server.
  • The server receives the request and looks for the page to deliver.
  • If the page contains PHP, it is processed.
  • The server executes the PHP code of the page and prepares the final result, the HTML.
  • The HTML page is sent to the user.

Graphically, the operation of PHP can be summarized as follows.

Suppose we have a website with the following code. I have placed the HTML in blue and in green what would be the PHP, (I clarify that the PHP is not written like that, it is only to simplify the example)

<! DOCTYPE html>

<html>

<head>

<title> Example </title>

</head>

<body>

Right now, there is <? Php

How many users are browsing the server?

?>  browsing the web.

</body>

</html>

As explained above, when a user enters, a request will be made to the server. Upon finding the line of PHP code, it will be processed.

The server will ask how many users are browsing. Suppose the result to that question is 25 users. Then that will be the answer that will be sent. As a fine result, the next processed HTML is returned.

<! DOCTYPE html>

<html>

<head>

<title> Example </title>

</head>

<body>

There are currently 25 users browsing the web.

</body>

</html>

Once the browser interprets the HTML code, the final result will only be the text:

There are currently 25 users browsing the web.

In the example, the server’s request was the number of users online, but this could have been to show the last blog entry or comment, the number of times content shared on the networks, etc.

The function of PHP in WordPress

WordPress is a content manager that uses several programming languages. As you may be imagining, PHP is one of them. To say “one of them” is an understatement. PHP is the lifeblood of WordPress, fueling most of the web.

If you explore the compendium of folders that make up any WordPress theme, you will find folders of the type; sidebar.php, header.php, comments.php, and the most popular of all funtion.php. The first controls how the sidebar, header, and comments look and work, respectively. While the folder funtion.php accumulates functions that our theme will use of the various utility.

The moment someone visits your website, the web server will take all those separate PHP files for different areas of the topic, put them together, and deliver the completed HTML output to the visitor’s browser. Yes, yes, all that happens every time you visit a WordPress website.

As a user of the most popular CMS, you can do without knowing about this programming language. But the wide utility that PHP has in WordPress makes it worth it, at least, to know the least.

Well, with this, I finish the post. I hope you have understood what PHP is, its usefulness, and how it works.

Keep reading Does PHP have a future as a programming language?

Does PHP have a future as a programming language?

PHP is the programming language par excellence on the web and will continue to be so in the future, at least for a few more years. Although for some developers, it may be complex, let’s try to see why.

Why PHP is a good choice for web development

PHP is the most widely used web programming language in the world. 80% of websites use PHP. However, we hear a lot on the internet that PHP is just a bad programming language. But, it isn’t true. I have explained here why PHP is a good choice for web development.

Why PHP is best for web development?

PHP is a programming language as revolutionary as it is simple. It is not the most modern, but, years after its birth, it continues to enjoy great popularity. According to the latest data reported by w3techs, PHP is used by 78% of sites, including the well-known Facebook, WordPress, and Wikipedia.

What makes PHP the best option for web development in 2021?

A common choice in today’s web world is to use PHP programming. PHP is the multipurpose scripting language that is especially suited for web page development. What makes PHP the best option for web development in 2021? Its clarity in design, well-organized modules, and better technology maintenance make it the most popular language in today’s industry. Its popularity and credibility may be related to the fact that reputable organizations such as Harvard University or the social network Facebook are based on PHP. This is possible because PHP sites can be easily maintained, improved, and updated from time to time.

Viruses in PHP Webquest?

Lately, we are receiving many communications from users of the NOD 32 virus who tell us that said antivirus detects a supposed virus in PHP Webquest. On the one hand, we are pleased to see that so many users are not only using the program, but also installing it on their servers, but on the other, we are concerned that they may think that we have put software into circulation on the Internet without being fully convinced that the security of its users is guaranteed. In this regard, we mean that:

A Beginner’s Guide to Learning PHP

PHP is a server-side programming language used on the Internet to create dynamic web pages. It is often combined with MySQL, a relational database server that can store the information and variables that PHP files can use. Together they can create everything from the simplest website to a complete business website, an interactive web forum, or even an online role-playing game.

Obsolescence problems and their resolution (momentary)

As many of you already know, it costs us a lot of work and some money to keep this site open, but we do it with pleasure because we believe that many users benefit from it and it is worth it to us. However, we do not have the time or resources to evolve the program, so we cannot carry out a necessary renovation of the database structure and an adaptation of the program code to the latest versions of the programming language in the which is based (PHP).

As a consequence of the above, we periodically have to change databases, which means that the WebQuests stored in the previous database are lost. In this case, to avoid this loss, we have arranged a new installation, in which the WebQuests that had been created continue to function, and the users already registered. However, new activities cannot be created at the following URL.

To create new activities, you have to use the link “Use PHPWebquest” in the block on the right, create a new user and proceed as usual. We hope that this compromise solution can be of use to you and we apologize for the inconvenience this mess may have caused you.

Greek language and future developments

We recently had the good fortune to come into contact with a Greek developer, Panagiotis Tsiotakis, who has translated PHP Webquest into the Greek language. We have added that language to the international version of PHP Webquest, bringing the number of languages ​​currently available to 11.

Panagiotis also has other projects in its portfolio related to the development of our program:

  • Add a tab for teachers visiting a webquest
  • Separate the Process and Resources tabs
  • Modify the style sheets and add some new ones

We thank Panagiotis for his work and encourage any other developer who wants to participate in the project to join him, in the assurance that his work will be very useful for the thousands of students and teachers around the world who use this program at diary.