|
| |
|
|
| |
для: himera7
(07.11.2006 в 23:49)
| | | Массив тогда уж...
<?php
function put_contents($text, $filename)
{
$fd = fopen("./".$filename, "w");
fwrite($fd, $text);
fclose($fd);
}
$text = array();
$text[] = ":))";
$text[] = "=))"
$text[] = "8))";
$text[] = "((:";
$text[] = "((="
$text[] = "((8";
$count = count($text); //6
for($i = 0; $i < $count; $i++, put_contents($text[$i], "index".($i + 1).".htm"));
?>
|
| |
| |
|
|
| |
|
|
| | допустим у меня index.php хранит 10 переменых с текстом!
может ли index.php создать 10 документов index1.htm ... index10.htm в которых будет хранится соответствующий текст | |
| |
|
|
|