src/Gelembjuk/Logger/ErrorScreen.php
protected function getRequestInformation() {
		$postdata = '';
			
		if ($_SERVER['REQUEST_METHOD'] == 'POST') {
			// build a request string
			$t = array();
			
			foreach ($_POST as $k => $v) {
				$t[] = $k . '=' . $v;
			}

			// make a one line string
			$postdata = preg_replace('![\n\r]!',"",implode('&',$t));
			
			// truncate if too long
			if (strlen($postdata) > 250) {
				$postdata = substr($postdata,0,250);
			}
		}

		// build a string with information about a request
		$requestinfo = ' '.getmypid() . "; " .
			basename($_SERVER['SCRIPT_FILENAME']) . "; " .
			$_SERVER['REMOTE_ADDR'] . "; " .
			$_SERVER['REQUEST_METHOD'] . "; " .
			$_SERVER['QUERY_STRING'] . "; " .
			$postdata . "; " .
			$_SERVER['HTTP_USER_AGENT'] . "; " .
			$_SERVER['HTTP_REFERER'];
		return $requestinfo;
	}
protected function getRequestInformation() {
		$postdata = '';
			
		if ($_SERVER['REQUEST_METHOD'] == 'POST') {
			// build a request string
			$t = array();
			
			foreach ($_POST as $k => $v) {
				$t[] = $k . '=' . $v;
			}

			// make a one line string
			$postdata = preg_replace('![\n\r]!',"",implode('&',$t));
			
			// truncate if too long
			if (strlen($postdata) > 250) {
				$postdata = substr($postdata,0,250);
			}
		}

		// build a string with information about a request
		$requestinfo = ' '.getmypid() . "; " .
			basename($_SERVER['SCRIPT_FILENAME']) . "; " .
			$_SERVER['REMOTE_ADDR'] . "; " .
			$_SERVER['REQUEST_METHOD'] . "; " .
			$_SERVER['QUERY_STRING'] . "; " .
			$postdata . "; " .
			$_SERVER['HTTP_USER_AGENT'] . "; " .
			$_SERVER['HTTP_REFERER'];
		return $requestinfo;
	}
protected function getRequestInformation ( ) { $ postdata = '' ; if ( $ _SERVER [ 'REQUEST_METHOD' ] == 'POST' ) { // build a request string $ t = array ( ) ; foreach ( $ _POST as $ k => $ v ) { $ t [ ] = $ k . '=' . $ v ; } // make a one line string $ postdata = preg_replace ( '![\n\r]!' , "" , implode ( '&' , $ t ) ) ; // truncate if too long if ( strlen ( $ postdata ) > 250 ) { $ postdata = substr ( $ postdata , 0 , 250 ) ; } } // build a string with information about a request $ requestinfo = ' ' . getmypid ( ) . "; " . basename ( $ _SERVER [ 'SCRIPT_FILENAME' ] ) . "; " . $ _SERVER [ 'REMOTE_ADDR' ] . "; " . $ _SERVER [ 'REQUEST_METHOD' ] . "; " . $ _SERVER [ 'QUERY_STRING' ] . "; " . $ postdata . "; " . $ _SERVER [ 'HTTP_USER_AGENT' ] . "; " . $ _SERVER [ 'HTTP_REFERER' ] ; return $ requestinfo ; }
Collect request information to log it. This can help to solve a problem later.

@return string Requets information, for logging
Collect request information to log it . This can help to solve a problem later .