1
0
mirror of https://github.com/php/web-php.git synced 2026-03-29 01:32:15 +01:00
Files
archived-web-php/FAQ.php3

25 lines
714 B
PHP

<?$mod = GMDate("D, d M Y H:i:s",filemtime("FAQ.html"));
Header("Last-Modified: $mod GMT"); ?>
<html><head><title>PHP3 Frequently Asked Questions</title>
<?$title="PHP3 Frequently Asked Questions";
include "include/header.inc";
$fd = fopen("FAQ.html", "r");
/* 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);
?>
</body></html>