<pre lang="PHP"><?php $input = "text2; function find_value($input) { $handle = @fopen("/users/edwin/list.txt", "r"); if ($handle) { while (!feof($handle)) { $entry_array = explode(":",fgets($handle)); if ($entry_array[0] == $input) { return $entry_array[1]; } } fclose($handle); } return NULL; } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)