- void addCookie()
Usage: addCookie ( $cookie )
Adds a remote cookie based on an existing cookie object. If headers have already been send out, an Exception is throw
Parameters
- cookie $cookie - Cookie object that is to be sent out
Info
- void addHeader()
Usage: addHeader ( $name, $value )
Sends out an HTTP header. If headers have already been sent out, then an exception is thrown.
Parameters
- name $name - Name of the header to add
@
- value $value - value of the header to add... Ex "Location: index.html", location is name, index.html is value
@
Info
- Throws:
HeadersSentException if the headers have already been sent out
- Access:
public
- void sendRedirect()
Usage: sendRedirect ( $location )
Redirects the current client to a different page.
Parameters
- location $location - the URI to redirect to
@
Info
- Throws:
HeadersSentException if the headers have already been sent out
- Access:
public
- void setContentType()
Usage: setContentType ( $contentType )
Sets the content-type of the page... An example of a valid type would be text/xml or text/html
Parameters
- contentType $contentType - the content type to set the page to
@
Info
- Throws:
HeadersSentException if the headers have already been sent out
- Access:
public