PHP
.
PHP.
. 4 .
1. , php-
<?
// .
list($msec,$sec)=explode(chr(32),microtime());
$HeadTime=$sec+$msec;
// PHP .
// :
// include("script.inc.php");
// .
list($msec,$sec)=explode(chr(32),microtime());
//
// 4 ().
echo " ".round(($sec+$msec)-$HeadTime,4)." .";
?>
2. php-
<?
highlight_file("script.php");
?>
3.
:
<form action=enter.php>
: <input name=login type=text><br>
: <input name=pass type=text><br>
<input type=submit value=></form>
enter.php :
<?php
foreach (file(passw/passw) as $k)
(if (substr($k, 0, -2)=="$login $pass")($result=1
))
if ($result!=1){
exit;}
session_start();
session_register("authorize");
$authorize=1;
?>
٨ <html> .. (!)
:
<?php
session_start();
if ($authorize!=1){
exit;}
- .
:
<?php
session_start();
session_destroy();
>
4.
<?php
//
// created by ne_tot
print "<form action=$PHP_SELF method=post>\n- : <select name=\"lenght[]\">";
print "<option>$lenght[0]\n";
for($d = 5; $d <= 32; $d++)
{
print "<option>$d\n";
}
print "</select>\n<br><input type=submit value=>\n<br>";
print "</form>";
$symb =
"qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890!@#$%^&*()_+#-=<>`";
$count = strlen($symb)-1;
if(empty($lenght)) {exit();}
else
{
foreach ($lenght as $digit)
print "<b> $digit - </b>";
for($i=0; $i <= ($digit-1); $i++)
{
$rand = rand(0, $count);
print "<font face=verdana size=2 color=red>$symb[$rand]";
}
print "</font><HR width=100%>";
}
?>
,
PHP.
. ; .
, ,
( , + ). !
: www.wr-script.ru, 2004-2024.
. WR-Script.ru!
|