I have been playing around with this code for awhile now. Can not get the string entered into the summary field written to the file. I have the code in 2 files.
[php]
Summary:
<?php if (file_exists($indexfile)) { // linkify the index echo "DVD in current libary:
"; $fp = fopen($indexfile, "rb"); // for each line in the index... while ($dvd = fgets($fp)) { echo ""; echo "$dvd
"; } fclose($fp); }
$last_mod = filemtime(“index.txt”);
print("DVD Catalog last updated on ");
print(date(“m/j/y h:i”, $last_mod));
?>
[php]<?php
$file = $_REQUEST[‘file’];
if (file_exists($file)) {
$dvd = file_get_contents($file);
echo “Summary: $summary”;
} else {
echo “No such file.”;
}
?>[/php]