: 
PHP
“CHIP / ”
, . , , FTP-, - . PHP , , -, , . , .
, , -? , PHP-, PHP, .
, Apache (http://apache.org), PHP (http://www.php.org) - , , .
, ?
PHP
PHP, . Windows , . , . , PHP , , Perl.
PHP , . C++, c PHP , .
( ) PHP,
<?php
?>
, , .
PHP, , . , , , - , . PHP , . , . :
/*
*/
//
, PHP, . , .
PHP, $. , :
$name = ;
$name . :
echo $name;
print $name;
, , -, !, :
$hello = “”;
$spacer = ” “;
$name = “”;
$din = “!”;
echo $hello;
echo $spacer;
echo $name;
echo $din;
, , , , , $din . , .
, . . , , . , , ? , , ? . , configuration.php3. , , :
require(configuration.php3);
echo $hello;
echo $spacer;
echo $name;
echo $din;
, , .
PHP, web-, HTML-. PHP , . , ASP (Active Server Pages), , , , Windows NT.
PHP, - , , !. .
, , , . , . HTML , :
<form method=”POST” action=”add_text.php3″>
<p> :<br>
<input type=”text” name=”text_name” size=”20″><br>
:<br>
<textarea rows=”12″ name=”text” cols=”53″></textarea><br>
<input type=”submit” value=”Submit” name=”Submit”></p>
</form>
, , texts:
<?php
$filename = “$name”; /* . , , */
$fp = fopen(”texts/$text_name.txt”,”w+”) /* , , w+ */
fputs($fp, “<b>$text_name</b><br>$text”); /* HTML- */
fclose($fp); /* */
?>
. . PHP. -, , ?
HTML-, , , PHP-:
<?
$filename = “read/”.$open .’.txt’; //
if (file_exists ($filename)): //
$fd = fopen ($filename, “r”); //
$showtext = fread ($fd, filesize ($filename)); // $showtext
fclose ($fd); //
echo ($content); // ,
else: echo (” .”); //
endif; // ,
?>
? . , , read.php3. , read.php3?open=___.
, - , . , HTML-, - , , .
LastFm.Ru
LIci WP - WordPress crossposting plugin