Re: HTTP

From: Date: Fri, 31 Aug 2001 12:27:47 +0000
Subject: Re: HTTP
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1732@lists.php.net to get a copy of this message
[Nick Panteleeff <drnix@svinsurance.ru>] > I think it would be good to extend the class HTTP > 1. make by its extend of PEAR > 2. supplement its of methods setCookie, setHeader > > There is an idea to realize classes: > > HTTP/Headers - for manipulation with headers > (setNamedHeader, setCache, setExpired etc...) > HTTP/Cookies > HTTP/Browser - for identification of a browser on > HTTP_USER_AGENT string It seems to me like you're basically wrapping header() and setcookie() in PHP code. While it's nice and pretty, I don't really see the point in that unless it has some siginificant advantages. Browser detection would be useful (let's try to forget how miserably the browscap stuff in PHP failed :-). > I have implementation of these classes... > I could grant its for discussion Why not post an URL to your code here? - Stig -- Stig Sæther Bakken <ssb@alltheweb.com> Fast Search & Transfer ASA, Trondheim, Norway

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