Вы находитесь на странице: 1из 3

.

:
$sales_tax = 0.0875;
SQL:
$sql = "SELECT * FROM MY_TABLE";
,
:
$tax_total = $sales_tax * $sub_total;
:
($).
.
($ $ - ).
:
Integer ();
Float ( );
String ();
Array ().
,
.

$fave_colors , ,
. ( 0
3) .
$fave_colors [0] = "red";
$fave_colors [1] = "blue";
$fave_colors [2] = "black";
$fave_colors [3] = "white";
, 0.

:
$ = 1.552;
$b = 0.964;
$sales_tax = 0.875;

(

). :
$ = 15;
$b = -521;
Cpo
, ("), :
$ = " ";
$b = "<> xopoma!";
,
. ,
$num =57;
//
$my_string = " $num !"; //
, $my_string "
57 !".
HTML-
HTML- (GET POST),

$HTTP_POST_VARS $HTTP_GET_VARS.
. ,
$first_name:
<input type="text" name="first_name" size="20">
POST,
$HTTP_POST_VARS["first_name"]. GET,
$HTTP_GET_VARS["first_name"].
"cookie"
, "cookie"
$HTTP_COOKIE_VARS.
"cookie" "user" "Ivan Ivanov",
:
SetCookie ("user", "Ivan Ivanov", time( )+3600);

$user

$HTTP_COOKIE_VARS "Ivan Ivanov".


$user $HTTP_COOKIE_VARS ['user'],
.


Web- Web-,
, .

.

$VAR_NAME. , ,
, getenv( ),
.
.
REMOTE_ADDR IP- , .
:
<?
$remote_addr = getenv("REMOTE_ADDR");
echo " IP $remote_addr.";
?>
HTTP_USER_AGENT ,
, . ,
<?
$browser_type = getenv("HTTP_USER_AGENT");
echo " $browser_type.";
?>
,
: http://hoohoo.ncsa.uiuc.edu/cgi/env.html.

Оценить