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 URLSYNOPSISstring http_build_url ([mixed $url], [mixed $parts], [int $flags = HTTP_URL_REPLACE], [array &$new_url])DESCRIPTIONBuild a URL. The parts of the second URL will be merged into the first according to the flags argument.PARAMETERSo $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 returnRETURN VALUESReturns the new URL as string on success or FALSE on failure.EXAMPLESExample #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=cSEE ALSOparse_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 |
uri::url(3) - redhat |
mojo::url(3pm) - debian |
uri::url(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Ftp Link problem |
how to use in bash variables and quotes |
Download data from ftp. |
Shell script for cron url |
Copy on right click not available on FTP URL |