home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Magazine / HomeAutomation / Apache / include / php / ext / standard / url.h < prev   
Encoding:
C/C++ Source or Header  |  2000-03-07  |  2.7 KB  |  66 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: Jim Winstead (jimw@php.net)                                 |
  27.    +----------------------------------------------------------------------+
  28.  */
  29. /* $Id: url.h,v 1.5 2000/03/07 04:28:43 andrei Exp $ */
  30.  
  31. #ifndef _URL_H
  32. #define _URL_H
  33.  
  34. typedef struct url {
  35.     char *scheme;
  36.     char *user;
  37.     char *pass;
  38.     char *host;
  39.     unsigned short port;
  40.     char *path;
  41.     char *query;
  42.     char *fragment;
  43. } url;
  44.  
  45. void free_url(url *);
  46. extern url *url_parse(char *);
  47. extern int php_url_decode(char *, int); /* return value: length of decoded string */
  48. extern char *php_url_encode(char *, int);
  49. extern int php_raw_url_decode(char *, int); /* return value: length of decoded string */
  50. extern char *php_raw_url_encode(char *, int);
  51.  
  52. PHP_FUNCTION(parse_url);
  53. PHP_FUNCTION(urlencode);
  54. PHP_FUNCTION(urldecode);
  55. PHP_FUNCTION(rawurlencode);
  56. PHP_FUNCTION(rawurldecode);
  57.  
  58. #endif /* _URL_H */
  59.  
  60. /*
  61.  * Local variables:
  62.  * tab-width: 4
  63.  * c-basic-offset: 4
  64.  * End:
  65.  */
  66.