note 84310 added to function.parse-url

From: Date: Tue, 08 Jul 2008 21:58:31 +0000
Subject: note 84310 added to function.parse-url
Groups: php.notes 
Request: Send a blank email to php-notes+get-141280@lists.php.net to get a copy of this message
Hola a todos, necesito poder obtener de navegador las siguiente URL. http:// myuser:mypass @ www.site.com/directory para luego utilizar la funcion parse_url y recuperar los valores myuser y mypass. Todos los ejemplos parten desde la variable seteada: $url = 'http: //username: password @hostname/path?arg=value#anchor'; pero como seteo esta variable desde php? Necesito recuperar estos dos valores: myuser y mypass. Sugerencia, Ayuda. --------------- Hello everyone, I need to obtain the following URL browser. http://myuser:mypass@ www. site.com/ Directory and then use the function parse_url and retrieve values myuser and mypass. All examples come from the variable set: $ url = 'http://username:password @ hostname / path? arg = value # anchor'; but as seteo this variable from php? I need to recover these two values: myuser and mypass. Suggestions, Help. ---- Server IP: 190.2.55.3 Probable Submitter: 190.224.71.213 ---- Manual Page -- http://www.php.net/manual/en/function.parse-url.php Edit -- https://master.php.net/note/edit/84310 Del: integrated -- https://master.php.net/note/delete/84310/integrated Del: useless -- https://master.php.net/note/delete/84310/useless Del: bad code -- https://master.php.net/note/delete/84310/bad+code Del: spam -- https://master.php.net/note/delete/84310/spam Del: non-english -- https://master.php.net/note/delete/84310/non-english Del: in docs -- https://master.php.net/note/delete/84310/in+docs Del: other reasons-- https://master.php.net/note/delete/84310 Reject -- https://master.php.net/note/reject/84310 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141280) next »