Re: cvs: pear /HTTP_Url/docs example.php
| From: | Stig S. Bakken | Date: | Mon, 11 Feb 2002 07:49:17 +0000 |
| Subject: | Re: cvs: pear /HTTP_Url/docs example.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-2376@lists.php.net to get a copy of this message | ||
What about ftp urls?
- Stig
On Sun, 2002-02-10 at 23:13, Richard Heyes wrote:
> heyesr Sun Feb 10 17:13:14 2002 EDT
>
> Added files:
> /pear/HTTP_Url/docs example.php
> Log:
> * Added HTTP_Url class
>
>
>
> Index: pear/HTTP_Url/docs/example.php
> +++ pear/HTTP_Url/docs/example.php
> <?php
> /**
> * This example will decode the url given and display its
> * constituent parts.
> */
>
> include('HTTP/Url.php');
>
> $url =& new HTTP_Url('http://www.php.net/#top');
> ?>
> <html>
> <body>
>
> <pre>
> Protocol...: <?=$url->protocol?>
>
> Username...: <?=$url->user?>
>
> Password...: <?=$url->pass?>
>
> Server.....: <?=$url->host?>
>
> Port.......: <?=$url->port?>
>
> File/path..: <?=$url->path?>
>
> Querystring: <?=$url->getQueryString()?>
>
> Anchor.....: <?=$url->anchor?>
>
>
> Full URL...: <?=$url->getUrl()?>
> </pre>
>
> </body>
> </html>
>
>
>
> --
> PEAR CVS Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc