1
PHP / как проверить ввод посетителя и загрузить нужную страницу?
« : 20 Марта 2003, 13:21:42 »
у меня сейчас 3 файла, которые леат в одном каталоге
files.txt:
----
cat/site1.ru/index.php
cat/site2.ru/index.php
----
test.php:
----
$file=file(\'files.txt\');
for ($i=0;$i if strstr($file[$i],$_POST[\'dir\']) {
header("Location: ".$file[$i]);
exit;
}
}
header("Location: no.php"]);
?>
----
и index.php:
---
files.txt:
----
cat/site1.ru/index.php
cat/site2.ru/index.php
----
test.php:
----
$file=file(\'files.txt\');
for ($i=0;$i
header("Location: ".$file[$i]);
exit;
}
}
header("Location: no.php"]);
?>
----
и index.php:
---