{"id":50084,"date":"2018-09-29T21:35:05","date_gmt":"2018-09-29T15:35:05","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=50084"},"modified":"2018-09-29T21:35:05","modified_gmt":"2018-09-29T15:35:05","slug":"_server-%d0%b8%d0%bd%d1%84%d0%be%d1%80%d0%bc%d0%b0%d1%86%d0%b8%d1%8f-%d0%be-%d1%81%d0%b5%d1%80%d0%b2%d0%b5%d1%80%d0%b5-%d0%b8-%d1%81%d1%80%d0%b5%d0%b4%d0%b5-%d0%b8%d1%81%d0%bf%d0%be%d0%bb%d0%bd","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=50084","title":{"rendered":"$_SERVER &#8212; \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438 \u0441\u0440\u0435\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f"},"content":{"rendered":"<p>\u0412 \u043c\u0430\u0441\u0441\u0438\u0432 $_SERVER PHP-\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b\u00a0\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0443\u043f\u0435\u0440\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 $_SERVER.<\/p>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0443\u0442\u044c \u043a \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430:<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 12px;\">echo $_SERVER<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'DOCUMENT_ROOT'<\/span><span style=\"color: #66cc66;\">]<\/span>;<\/pre>\n<pre>\/var\/www\/ubuntu-desktop.ru<\/pre>\n<p>\u0412 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 $_SERVER[&#8216;HTTP_ACCEPT&#8217;] \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0438\u043f\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430:<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 12px;\">echo $_SERVER<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #ff0000;\">'HTTP_ACCEPT'<\/span><span style=\"color: #66cc66;\">]<\/span>;<\/pre>\n<pre>text\/html,application\/xhtml+xml,application\/xml;\r\nq=0.9,image\/webp,image\/apng,*\/*;q=0.8<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;HTTP_ACCEPT_LANGUAGE&#8217;] \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044f\u0437\u044b\u043a\u0430:<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'HTTP_ACCEPT_LANGUAGE'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;SCRIPT_NAME&#8217;] \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0443\u0442\u044c, \u043a \u0442\u0435\u043a\u0443\u0449\u0435\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u043c\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u0443. \u042d\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0434\u043b\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0441\u0430\u043c\u0438\u0445 \u0441\u0435\u0431\u044f.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'SCRIPT_NAME'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>\/test.php<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;HTTP_HOST&#8217;] \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c \u0441\u0430\u0439\u0442\u0430, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'HTTP_HOST'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span>\r\n<\/pre>\n<pre>ubuntu-desktop.ru<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;HTTP_USER_AGENT&#8217;] \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0442\u0438\u043f\u0435 \u0438 \u0432\u0435\u0440\u0441\u0438\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'HTTP_USER_AGENT'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) \r\nChrome\/61.0.3163.100 Safari\/537.36<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;REMOTE_ADDR&#8217;] \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 IP-\u0430\u0434\u0440\u0435\u0441 \u043a\u043b\u0438\u0435\u043d\u0442\u0430.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'REMOTE_ADDR'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>127.0.0.1<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;SCRIPT_FILENAME&#8217;] \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0444\u0430\u0439\u043b\u0443 \u043e\u0442 \u043a\u043e\u0440\u043d\u044f \u0434\u0438\u0441\u043a\u0430.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'SCRIPT_FILENAME'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>\/var\/www\/ubuntu-desktop.ru\/test.php<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;SERVER_NAME&#8217;] \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u0438\u043c\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u0435 \u0441 \u0434\u043e\u043c\u0435\u043d\u043d\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c \u0441\u0430\u0439\u0442\u0430, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043d\u0451\u043c.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'SERVER_NAME'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>ubuntu-desktop.ru<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;SERVER_ADDR&#8217;] \u0432\u044b\u0432\u043e\u0434\u0438\u0442 IP \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'SERVER_ADDR'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>127.0.0.1<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;SERVER_PORT&#8217;] \u0432\u044b\u0432\u043e\u0434\u0438\u0442 g\u043e\u0440\u0442, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'SERVER_PORT'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span>\r\n<\/pre>\n<pre>80<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;SERVER_SOFTWARE&#8217;] \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'SERVER_SOFTWARE'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>Apache\/2.4.10 (Ubuntu)<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;SERVER_SOFTWARE&#8217;] c\u0442\u0440\u043e\u043a\u0430 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0430\u044f \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0430\u0445, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'SERVER_PROTOCOL'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>HTTP\/1.1<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;REQUEST_METHOD&#8217;] \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u043c\u0435\u0442\u043e\u0434 \u0437\u0430\u043f\u0440\u043e\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430: GET \u0438\u043b\u0438 POST.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'REQUEST_METHOD'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>GET<\/pre>\n<p>\u0412 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;QUERY_STRING&#8217;] \u0437\u0430\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u0443, \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0430\u0434\u0440\u0435\u0441:<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0430\u0434\u0440\u0435\u0441\u0430: http:\/\/ubuntu-desktop.ru\/test.php?id=11<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'QUERY_STRING'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>id=11<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;PHP_SELF&#8217;] \u0432\u044b\u0434\u0430\u0435\u0442 \u0438\u043c\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430, \u0438 \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0430\u0434\u0440\u0435\u0441 http:\/\/ubuntu-desktop.ru\/test.php?id=11\u00a0\u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;PHP_SELF&#8217;] \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 &#171;\/test.php&#187;.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'PHP_SELF'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>\/test.php<\/pre>\n<p>\u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;REQUEST_URI&#8217;] \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043c\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u0430, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u043e\u0442 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0442.\u0435. \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0430\u0434\u0440\u0435\u0441:\u00a0http:\/\/ubuntu-desktop.ru\/test.php?id=11 \u0442\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;REQUEST_URI&#8217;] \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442 &#171;\/test.php?id=11&#187;.<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'REQUEST_URI'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>\/test.php?id=11<\/pre>\n<p>\u0414\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0430\u0434\u0440\u0435\u0441\u0430 \u043a \u0441\u043a\u0440\u0438\u043f\u0442\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432:<\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 12px;\"><span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">\"http:\/\/\"<\/span><span style=\"color: #339933;\">.<\/span><span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'SERVER_NAME'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">.<\/span><span style=\"color: #000088;\">$_SERVER<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'REQUEST_URI'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">;<\/span><\/pre>\n<pre>http:\/\/ubuntu-desktop.ru\/test.php?id=11<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u043c\u0430\u0441\u0441\u0438\u0432 $_SERVER PHP-\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0442\u043e\u0440 \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043e\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u041d\u0438\u0436\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b\u00a0\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0443\u043f\u0435\u0440\u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 $_SERVER. \u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;DOCUMENT_ROOT&#8217;] \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0443\u0442\u044c \u043a \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430: echo $_SERVER[&#8216;DOCUMENT_ROOT&#8217;]; \/var\/www\/ubuntu-desktop.ru \u0412 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 $_SERVER[&#8216;HTTP_ACCEPT&#8217;] \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0438\u043f\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430: echo $_SERVER[&#8216;HTTP_ACCEPT&#8217;]; text\/html,application\/xhtml+xml,application\/xml; q=0.9,image\/webp,image\/apng,*\/*;q=0.8 \u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;HTTP_ACCEPT_LANGUAGE&#8217;] \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044f\u0437\u044b\u043a\u0430: echo $_SERVER[&#8216;HTTP_ACCEPT_LANGUAGE&#8217;]; ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4 \u042d\u043b\u0435\u043c\u0435\u043d\u0442 $_SERVER[&#8216;SCRIPT_NAME&#8217;] \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0443\u0442\u044c, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":49675,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[],"class_list":["post-50084","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"views":4307,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/50084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50084"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/50084\/revisions"}],"predecessor-version":[{"id":50085,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/50084\/revisions\/50085"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/49675"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50084"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}