PHP 1. PHP?

FreshLook Dimensions .

PHP 1. PHP? 2002-07-04
: Dapi : [1]

PHP server-side , html . PHP ASP ( asp2php), unix-like web- apache, MS IIS -. , PHP3 -.

, PHP - , . , , 15 , , SQL ( -) php- html . ? . , , sql MS Access web- sql, php,  php- sql , , .

SQL. PHP, , (PHP) apache+php+sql. MySQL, linux win9x/NT.

php, , .

<HTML><BODY>
:
<?
$dir = opendir(".");
while($file = readdir($dir))
   echo "$file<BR>";
closedir($dir);
?>
</BODY></HTML>

, <? ?> , . , echo. , , - , . , PHP C? Perl? Basic? :

<?
$dir = dir(".");
while($file = $dir->read())
  echo "$file<BR>";
$dir->close();
?>

html ! , linux shell ( XXX ;) dos/win. : php3 -q <filename> .

, , MySQL:

<?
$conn=mysql_connect("127.0.0.1");
if (mysql_select_db("db",$conn)) {
  $res=mysql_query("select * from tabl", $conn);
  while(($data=mysql_fetch_row($res)))
    echo("$data[0] $data[1] ");
} else
  echo "Error! ";
?>

tabl db MySQL .



: Dapi
: https://inforkom-tools.ru/ - .


, , ( , + ). !

: www.wr-script.ru, 2004-2024.

. WR-Script.ru!

WEB-

WR-Счётчик