Re: typo in Validate/Validate_US.php

From: Date: Mon, 10 Jun 2002 20:49:54 +0000
Subject: Re: typo in Validate/Validate_US.php
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6905@lists.php.net to get a copy of this message
wouldn't you know it.... i hassle someone about their grammar, and misspell grammar AND use your instead of you're. long day, and the energy drink i'm trying for the first time ever this afternoon seems to be wearing off........ :-/ -timmyg At 03:47 PM 6/10/2002 -0500, you wrote:
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 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;
            }
        }
-- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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