1
0
mirror of https://github.com/php/web-php.git synced 2026-03-24 07:12:16 +01:00
Files
archived-web-php/FAQ.php
Zeev Suraski 818fbbb14c Add .php files
2000-05-22 18:30:01 +00:00

29 lines
737 B
PHP

<?$mod = GMDate("D, d M Y H:i:s",filemtime("FAQ.html"));
Header("Last-Modified: $mod GMT");
require("shared.inc");
commonHeader("Frequently Asked Questions");
$fd = fopen("FAQ.html", "r");
/* turn off magic quotes for broken mirrors... */
set_magic_quotes_runtime(0);
/* drop everything until it tells us to stop chopping */
while (!feof($fd)) {
if (ereg("stop chopping", fgets($fd, 1024))) {
break;
}
}
/* now print everything until it tells us to start chopping again */
while (!feof($fd)) {
if (!ereg("start chopping", $line = fgets($fd, 1024))) {
echo $line;
} else {
break;
}
}
/* just close the file, throwing away the rest */
fclose($fd);
commonFooter();
?>