note 115807 added to function.http-build-url

From: Date: Fri, 26 Sep 2014 16:04:35 +0000
Subject: note 115807 added to function.http-build-url
Groups: php.notes 
Request: Send a blank email to php-notes+get-200530@lists.php.net to get a copy of this message
It seems to me that the return value must always have a protocol, a host and a path. If they are not provided in the input, default values are added. From what I saw, the default value for the protocol is 'http://', for the host is the hostname (if running from cli) or the variable $_SERVER['HTTP_HOST'], for the path is the variable $_SERVER['SCRIPT_NAME'] ---- Server IP: 81.88.49.42 Probable Submitter: 82.106.75.90 ---- Manual Page -- http://php.net/manual/en/function.http-build-url.php Edit -- https://master.php.net/note/edit/115807 Del: integrated -- https://master.php.net/note/delete/115807/integrated Del: useless -- https://master.php.net/note/delete/115807/useless Del: bad code -- https://master.php.net/note/delete/115807/bad+code Del: spam -- https://master.php.net/note/delete/115807/spam Del: non-english -- https://master.php.net/note/delete/115807/non-english Del: in docs -- https://master.php.net/note/delete/115807/in+docs Del: other reasons-- https://master.php.net/note/delete/115807 Reject -- https://master.php.net/note/reject/115807 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200530) next »