HttpRequest, HttpResponse classes
am 24.04.2008 10:39:11 von Michaelp
Hello!
I am studying the way PHP allows programmers to manipulate Http
communication, and have looked at the HttpRequest and HttpResponse
classes.
All functions I find in the documentation relate to or use primitives,
arrays and unspecified objects. Have yet to find a single function
that either returns a HttpRequest (Respons) or uses it as a parameter.
I would like examples, if any exist, of how object instances of these
classes may be used.
thanks alot!
Michael
Re: HttpRequest, HttpResponse classes
am 24.04.2008 14:04:57 von Jerry Stuckle
Michaelp wrote:
> Hello!
>
> I am studying the way PHP allows programmers to manipulate Http
> communication, and have looked at the HttpRequest and HttpResponse
> classes.
>
> All functions I find in the documentation relate to or use primitives,
> arrays and unspecified objects. Have yet to find a single function
> that either returns a HttpRequest (Respons) or uses it as a parameter.
>
> I would like examples, if any exist, of how object instances of these
> classes may be used.
>
> thanks alot!
>
> Michael
>
Michael,
Nothing returns an object of either of these classes. You create the
objects yourself (with new) and use their methods to do what you want.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================