in reply to perl in php
I have no idea if it (still) works, but you can give it a try.<html> <head> <title>Test</title> </head> <body> <?php $username = str_replace("DOMAIN\\\\", "", $_SERVER['REMOTE_USER' +]); ?> Hello <?php printf("$username"); ?>, and welcome! </body> </html>
PHP has (at least) the following commands to run an external program:
Did you give these a try?
Update: added a list of PHP commands with links to the docs.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
|
|---|