php man page for http_build_url

Query: http_build_url

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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)
Related Man Pages
ns_absoluteurl(3aolserv) - debian
uri::url5.18(3) - mojave
parse_url(3) - php
http_build_url(3) - php
uri::url(3) - centos
Similar Topics in the Unix Linux Community
Build my box...
Ftp Link problem
Download data from ftp.
Shell script for cron url
Copy on right click not available on FTP URL