Website Development Prices

Website Development Prices

Thursday, July 21, 2016

Tabela opste promenljive na serveru (Table general variables on the server)

U PHP-u postoji superglobalni niz $_SERVER, koji sadrzi informacije o tome sta se desava sa odredjenom web aplikacijom. 

Tabela - opste promenljive na serveru



Ove promenljive servera su dobre zato sto daju malo vise informacija, na primer, ime skripta koji radi: 


Primer: 

PHP kod:

<!DOCTYPE html>
<html>
<head>
<title>Web forme i validacija unosa korisnika</title>
</head>

<body>
<h1>Ime skripta koji radi</h1>

<?php
echo "Ime skripta koji radi je " , $_SERVER["PHP_SELF"];
?>

</body>

</html>

Rezultat:



In PHP there is a superglobal array $_SERVER, which contains information on what happens to a particular web application.

Table - general variables on the server



These variables of server are good because they give a little more information, for example, the name of the script that works:

Example:

PHP code:

<!DOCTYPE html>
<html>
<head>
<title>Web forms and validation of user input</title>
</head>

<body>
<h1>Name of the script that works</h1>

<?php
echo "Name of the script that works is " , $_SERVER["PHP_SELF"];
?>

</body>

</html>


Result:



No comments:

Post a Comment

Note: Only a member of this blog may post a comment.