menu search
brightness_auto
Ask or Answer anything Anonymously! No sign-up is needed!
more_vert
why PHP is different from other , and why it is mostly  recommended 

7 Answers

more_vert
PHP is server side rendering language. And it is used for the web development. When your reader makes request to the server, the PHP sends the rendered webpage back to the reader on the browser. PHP is pretty much popular due to it's simplicity. 
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
more_vert
The PHP software works with the web server, which is the software that delivers web pages to the world. When you type a URL into your web browser's address bar, you're sending a message to the web server at that URL, asking it to send you an HTML file. The web server responds by sending the requested file. ... php or .
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
more_vert
PHP is a server side scripting language. that is used to develop Static websites or Dynamic websites or Web applications. PHP stands for Hypertext Pre-processor, that earlier stood for Personal Home Pages.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
more_vert

PHP is server side programming language, here the following charactersitcs:


  • PHP is acronym for "Hypertext Preprocessor"
  • it is widely-used, open source-server side scripting language
  • PHP script are executed on the server.
  • PHP cost nothing, it is free to use.
  • PHP is a efficient alternative to competitors such as Microsoft's ASP.
  • PHP file can contains text, HTML, CSS, JavaScript and PHP Code.
  • PHP file extension .php
  • PHP code are executed on the server, and the result is returned to the browser a plain HTML
  • PHP can contain dynamic page content
  • PHP can create, open, read, write and close files on the server
  • PHP can add, delete, modify data in your database
  • PHP can restrict users to access some pages on your website.
  • PHP can encrypt data
  • PHP runs various platform (Windows, Linux, Unix, Mac OS X, etc.)
  • PHP is compatible with almost all servers used today (Apache, IIS, etc.)
  • PHP Support a wide range of databases.
  • PHP is secure
  • PHP is easy to learn and runs efficiently on the server side.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
more_vert
PHP is a server-side scripting language used for web development. It runs on the server, generating HTML that is sent to the client's browser. It can interact with databases, handle forms, and create dynamic content.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
more_vert
PHP (Hypertext Preprocessor) is a server-side scripting language widely used for web development. It works by enabling the execution of code on the server before the web page is sent to the user's browser. Here's a simplified overview of how PHP works in a web context:

1. **Embedding PHP in HTML:**

   - PHP code is typically embedded within HTML files. PHP code is enclosed within `<?php` and `?>` tags. These tags indicate where PHP code begins and ends.

```php

<!DOCTYPE html>

<html>

<head>

    <title>PHP Example</title>

</head>

<body>

    <?php

        // PHP code goes here

        echo "Hello, World!";

    ?>

</body>

</html>

```

2. **Client Request:**

   - When a user requests a web page that contains PHP code, the request is sent to the web server.

3. **Server Processing:**

   - The web server recognizes the PHP code within the requested file. It passes the PHP code to the PHP interpreter installed on the server.

4. **PHP Interpreter:**

   - The PHP interpreter processes the PHP code, executing the instructions and generating dynamic content.

5. **Server Response:**

   - The server compiles the HTML output generated by PHP along with any other static content in the file.

6. **Client Receives Response:**

   - The compiled HTML is sent as the server's response to the user's browser.

7. **Browser Rendering:**

   - The user's browser receives the HTML response and renders the web page. From the user's perspective, the PHP code's execution is transparent; they see only the resulting HTML.

**Example: Dynamic Content Generation**

```php

<?php

    $name = "John";

    $greeting = "Hello, $name!";

?>

<!DOCTYPE html>

<html>

<head>

    <title>Dynamic Content Example</title>

</head>

<body>

    <p><?php echo $greeting; ?></p>

</body>

</html>

```

In this example, PHP dynamically generates a personalized greeting based on the value of the `$name` variable. The resulting HTML sent to the browser might look like:

```html

<!DOCTYPE html>

<html>

<head>

    <title>Dynamic Content Example</title>

</head>

<body>

    <p>Hello, John!</p>

</body>

</html>

```

PHP is commonly used for tasks such as database access, form handling, session management, and other server-side functionalities. Its ability to seamlessly integrate with HTML makes it a powerful tool for building dynamic and interactive web applications.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
more_vert
PHP is an open-source server-side programming language that can be used to create websites, applications, customer relationship management systems, and more.
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
Welcome to Answeree, where you can ask questions and receive answers from other members of the community.
...