If you toss:
<?php
echo $u.":".crypt($p);
?>

Into a file, say pass.php, upload it to your website and then call it as
http://mysite.com/pass.php?u=USER&p=PASS
It will return a line for the user 'USER' with the password 'PASS' that you can throw into a password file.
-Geoff