Re: typo in Validate/Validate_US.php

From: Date: Mon, 10 Jun 2002 20:44:19 +0000
Subject: Re: typo in Validate/Validate_US.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6903@lists.php.net to get a copy of this message
On Mon, 10 Jun 2002, Tim Gallagher wrote: > On line 145 in pear/Validate/Validate/US.php (cvs path), $fp is used to > reference the file handle. $fd is used to open the file. This results in > an error. > > -Tim > > 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 directly the 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 High Groups file: ' . $uri); return $source; } }

« previous php.pear.dev (#6903) next »