1
0
mirror of https://github.com/php/web-php.git synced 2026-03-27 16:52:12 +01:00
Files
archived-web-php/FAQ.php3
Zeev Suraski 49ebb47267 faq updates
1998-01-23 16:14:39 +00:00

26 lines
710 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="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>