Карта сайта Интеллектуальная поисковая системаДобавить свою ссылку по ключевому запросуПоисковая система v3.kz поможет ускорить индексацию вашего сайта выводит в Топ |
|
I have added the parse_url line. So now the function will only focus in the query part, not the whole URL. This is useful if something like below is done: <?php $my_GET = parse_query($_SERVER[REQUEST_URI]) parse_url. (php 3, php 4, php 5). Разбирает URL и возвращает его компоненты. URL. PHP Manual. Сайт посвящен документации по PHP. Руссифицированное руководство с примерами на PHP. Фреймворки, шаблонизаторы, набор часто употребляемых функций. parse_url (PHP 4, PHP 5) parse_url — Разбирает URL и возвращает его компоненты Описание mixed parse_url ( string $url ) Эта функция разбирает URL и parse_url -- Parse a URL and return its components. Description. mixed parse_url ( string url [, int component] ). This function parses a URL and returns an associative array containing any of the various components of $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; }. Return $pageURL; }. Print_r(parse_url(curPageURL())); Echo parse_url($url, PHP_URL_PATH); Source for curPageURL function. Im a php newbie trying to find a way to use parse_str to parse a number of urls from a database (note: not from the request, they are already stored in a database, dont ask... so _GET wont work). Php функции. parse_url. parse_url. 2) Using the $_SERVER variable. This part shows how to get the same information, including obtaining data from a form to pass to a PHP script. Comparison with parse_url. Получить домен из ссылки. <?php echo parse_url(http://ru.najomi.org/_nix/bash/2, PHP_URL_HOST) Информация взята v3.kz |
загрузка...
|