Re: typo in Validate/Validate_US.php
| From: | Tim Gallagher | Date: | Mon, 10 Jun 2002 20:47:20 +0000 |
| Subject: | Re: typo in Validate/Validate_US.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6904@lists.php.net to get a copy of this message | ||
While your at that...
fix the grammer in the error message. Should read something like...
"Could not access the SSA High Groups file."
:)
-timmyg
While you're at it, why not use the PEAR File and Error functions instead? This works for me. - Brent/** * Gets the most current list the highest SSN group numbers issued * from the Social Security Administration website. This info can be * cached for performance (and to lessen the load on the SSA website) * * @param string $uri Path to the SSA highgroup.htm file * @param bool $is_text Take the $highgroup_htm param as directlythe contents* @returns array */ function ssnGetHighGroups($uri='http://www.ssa.gov/foia/highgroup.htm', $is_text = false) { if (!$is_text) { $source = File::readAll($uri); if (PEAR::isError($source)) { return PEAR::raiseError('Could not access to the SSA HighGroups file: ' . $uri);return $source; } }