won't work... request_uri doesn't contain these informations:
http://user:pw@foo.bar.com/test.php -> request_uri: /test.php
for your regex you also could use parse_url().
any other suggestions from all php cracks out there.
wis
Bobbisson wrote:
maybe if you're sure that the url has exatcly that form you should use
preg_match("/\/(\w+)🙁\w+)@/",$REQUEST_URI,$matches);
user is $matches[1] and pw is $matches[2].