home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Magazine / HomeAutomation / Apache / include / php / ext / standard / head.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-28  |  2.7 KB  |  61 lines

  1. /*
  2.    +----------------------------------------------------------------------+
  3.    | PHP HTML Embedded Scripting Language Version 3.0                     |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997,1998 PHP Development Team (See Credits file)      |
  6.    +----------------------------------------------------------------------+
  7.    | This program is free software; you can redistribute it and/or modify |
  8.    | it under the terms of one of the following licenses:                 |
  9.    |                                                                      |
  10.    |  A) the GNU General Public License as published by the Free Software |
  11.    |     Foundation; either version 2 of the License, or (at your option) |
  12.    |     any later version.                                               |
  13.    |                                                                      |
  14.    |  B) the PHP License as published by the PHP Development Team and     |
  15.    |     included in the distribution in the file: LICENSE                |
  16.    |                                                                      |
  17.    | This program is distributed in the hope that it will be useful,      |
  18.    | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
  19.    | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
  20.    | GNU General Public License for more details.                         |
  21.    |                                                                      |
  22.    | You should have received a copy of both licenses referred to here.   |
  23.    | If you did not, or have any questions about PHP licensing, please    |
  24.    | contact core@php.net.                                                |
  25.    +----------------------------------------------------------------------+
  26.    | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                       |
  27.    +----------------------------------------------------------------------+
  28.  */
  29. #ifndef _HEAD_H
  30. #define _HEAD_H
  31.  
  32.  
  33. /* 
  34.    We are still using a PHP2-style Push/Pop list here as opposed
  35.    to the PHP built-in list functionality because of the nature
  36.    of this particular list.  It is just used as a structured
  37.    buffer.  Doing this with the built-in list code would require
  38.    some changes to allow a search for the first item with a
  39.    certain type.  This type of search would not be optimal.
  40.    Private list management makes more sense here
  41. */
  42. typedef struct CookieList {
  43.     char *name;
  44.     char *value;
  45.     time_t expires;
  46.     char *path;
  47.     char *domain;
  48.     int secure;
  49.     struct CookieList *next;
  50. } CookieList;
  51.  
  52. extern PHP_RINIT_FUNCTION(head);
  53. PHP_FUNCTION(Header);
  54. PHP_FUNCTION(setcookie);
  55. PHP_FUNCTION(headers_sent);
  56.  
  57. PHPAPI int php_header(void);
  58. int php_headers_unsent(void);
  59.  
  60. #endif
  61.