Unix and Linux Discussions Tagged with .so |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
2,232 |
AIX |
|
|
|
0 |
6,690 |
Solaris |
|
|
|
3 |
18,128 |
Programming |
|
|
|
2 |
3,563 |
Programming |
|
|
|
0 |
3,869 |
Programming |
|
|
|
1 |
18,814 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
23,273 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,455 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,466 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,884 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
8,118 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,497 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,244 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,724 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,724 |
UNIX for Dummies Questions & Answers |
|
|
|
18 |
6,280 |
UNIX for Dummies Questions & Answers |
HTTP_BUILD_URL(3) 1 HTTP_BUILD_URL(3)
http_build_url - Build a URL
SYNOPSIS
string http_build_url ([mixed $url], [mixed $parts], [int $flags = HTTP_URL_REPLACE], [array &$new_url])
DESCRIPTION
Build a URL.
The parts of the second URL will be merged into the first according to the flags argument.
PARAMETERS
o $url
- (part(s) of) a URL in form of a string or associative array like parse_url(3) returns
o $parts
- same as the first argument
o $flags
- a bitmask of binary or'ed HTTP_URL constants; HTTP_URL_REPLACE is the default
o $new_url
- if set, it will be filled with the parts of the composed url like parse_url(3) would return
RETURN VALUES
Returns the new URL as string on success or FALSE on failure.
EXAMPLES
Example #1
A http_build_url(3) example
<?php
echo http_build_url("http://user@www.example.com/pub/index.php?a=b#files",
array(
"scheme" => "ftp",
"host" => "ftp.example.com",
"path" => "files/current/",
"query" => "a=c"
),
HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT
);
?>
The above example will output:
ftp://ftp.example.com/pub/files/current/?a=c
SEE ALSO
parse_url(3), http_build_str(3).
PHP Documentation Group HTTP_BUILD_URL(3)