/** * quote1.php * * Outputs price of given symbol as text/html. * * Computer Science 50 * David J. Malan */ // get quote $handle = @fopen("http://download.finance.yahoo.com/d/quotes.csv?s={$_GET["symbol"]}&f=e1l1", "r"); if ($handle !== FALSE) { $ method="get"> Email: Password: Password (again): I agree to the terms and conditions:
lectures/9/src/forms/ 46: form5 47: 48: 49: 50: Email: 51: 52: Password: 53: 54: Password (again): 55: 56: I agree to the terms and conditions: 57:
58: 59: 60: 61:
dictionary.php
1/2
lectures/9/src/mispellings/ 1:
global $dictionary, $size; if (!file_exists($dict) && is_readable($dict)) return FALSE; foreach (file($dict) as $word) { $dictionary[chop($word)] = TRUE; $size++; } return TRUE; } /* * int * size() * * Returns number of words in dictionary if loaded else 0 if not yet loaded. */ function size() { global $size; return $size; } /* * int * unload() * * Unloads dictionary from memory. */