note 16250 added to ref.url
| From: | doug at hunnysoft dot no-uce dot com | Date: | Mon, 22 Oct 2001 15:24:15 +0000 |
| Subject: | note 16250 added to ref.url | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19262@lists.php.net to get a copy of this message | ||
A function to parse relative URLs is conspicuously missing. What would be nice is a function like
parse_relative_url(url, url_base). url would be the URL string, as in parse_url(). url_base would
be an optional parameter that contains the context URL. The default for url_base would be the URL
of the currently executing script.
This function could be useful for scripts that allow a "callback" to another script. When
Script A invokes Script B, it includes a parameter of a callback script (the relative URL of Script
A or even Script C) that Script B calls after it finishes.
--
http://www.php.net/manual/en/ref.url.php
http://master.php.net/manage/user-notes.php?action=edit+16250
http://master.php.net/manage/user-notes.php?action=delete+16250
http://master.php.net/manage/user-notes.php?action=reject+16250