Re: [PEPr] +1 for Networking::Net_TrackBack
| From: | KOYAMA Tetsuji | Date: | Tue, 20 Apr 2004 13:56:01 +0000 |
| Subject: | Re: [PEPr] +1 for Networking::Net_TrackBack | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28145@lists.php.net to get a copy of this message | ||
At 20 Apr 2004 13:00:09 -0000,
PEPr wrote:
> I'm +1 on this so long as you only include PEAR.php when raising
> errors, instead of including it everytime.
Hummm...., Do you recomend like this code?
function sendPing($url, $data,
$user_agent = NET_TRACKBACK_DEFAULT_USER_AGENT,
$charset = null) {
if (!is_array($data)) {
require_once 'PEAR.php';
return PEAR::raiseError('Invalid Ping Data',
NET_TRACKBACK_ERROR_INVALID_PARAM);
}
:
:
I think it is not cool. Why must not include PHP.php everytime?
Regards,
--
koyama@hoge.org
koyama@beatraft.com
KOYAMA Tetsuji BeatCraft, Inc., Tokyo, Japan.