home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Online / Apache / include / php / ext / standard / head.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-07-23  |  2.0 KB  |  52 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP version 4.0                                                      |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group                   |
  6.    +----------------------------------------------------------------------+
  7.    | This source file is subject to version 2.02 of the PHP license,      |
  8.    | that is bundled with this package in the file LICENSE, and is        |
  9.    | available at through the world-wide-web at                           |
  10.    | http://www.php.net/license/2_02.txt.                                 |
  11.    | If you did not receive a copy of the PHP license and are unable to   |
  12.    | obtain it through the world-wide-web, please send a note to          |
  13.    | license@php.net so we can mail you a copy immediately.               |
  14.    +----------------------------------------------------------------------+
  15.    | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                       |
  16.    +----------------------------------------------------------------------+
  17. */
  18.  
  19. /* $Id: head.h,v 1.16 2000/07/24 01:39:49 david Exp $ */
  20.  
  21. #ifndef HEAD_H
  22. #define HEAD_H
  23.  
  24. /* 
  25.    We are still using a PHP2-style Push/Pop list here as opposed
  26.    to the PHP built-in list functionality because of the nature
  27.    of this particular list.  It is just used as a structured
  28.    buffer.  Doing this with the built-in list code would require
  29.    some changes to allow a search for the first item with a
  30.    certain type.  This type of search would not be optimal.
  31.    Private list management makes more sense here
  32. */
  33. typedef struct CookieList {
  34.     char *name;
  35.     char *value;
  36.     time_t expires;
  37.     char *path;
  38.     char *domain;
  39.     int secure;
  40.     struct CookieList *next;
  41. } CookieList;
  42.  
  43. extern PHP_RINIT_FUNCTION(head);
  44. PHP_FUNCTION(Header);
  45. PHP_FUNCTION(setcookie);
  46. PHP_FUNCTION(headers_sent);
  47.  
  48. PHPAPI int php_header(void);
  49. int php_headers_unsent(void);
  50.  
  51. #endif
  52.