You appear to be a bot. Output may be restricted
Description
Return the current URLFully qualified so that it can be passed as a parameter to another site Code copied from WordPress-SEO and http://webcheatsheet.com/PHP/get_current_page_url.php
Usage
$string = bw_current_url();
Parameters
Returns
string URL made up from global fieldsSource
File name: oik-bwtrace/libs/bobbforms.phpLines:
1 to 16 of 16
function bw_current_url() { $pageURL = 'http'; // Does it matter what it's set to? "on" or 1 **?** if ( isset( $_SERVER["HTTPS"] ) ) { $pageURL .= "s"; } $pageURL .= "://"; $pageURL .= $_SERVER["SERVER_NAME"]; // We know that SERVER_PORT is set by apache //if ($_SERVER["SERVER_PORT"] != "80") { // $pageURL .= $_SERVER["SERVER_PORT"]; //} $pageURL .= $_SERVER["REQUEST_URI"]; bw_trace2( $pageURL, "pageURL", false ); return( $pageURL ); }View on GitHub View on Trac