note 84310 rejected from function.parse-url by danbrown

From: Date: Tue, 08 Jul 2008 21:59:16 +0000
Subject: note 84310 rejected from function.parse-url by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141281@lists.php.net to get a copy of this message
Note Submitter: karlec at xagax dot com ---- 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.

« previous php.notes (#141281) next »