I am a cgi programmer and have written a small php script (md5.php) for md5
password encryption which is being called from a cgi (temp.cgi) file. Now, when
I try to excute the temp.cgi script from command line it works well and returns
me the expected value. But, the same cgi script doesn't return anything when
trying to execute from the web.

Any help would be highly appreciated.


### temp.cgi

print "Content-type: text/html\n\n";
$p=`/usr/bin/php /full/path/md5.php pass=$passwd|tail -1`;
print "pass is $p\n";

#### md5.php

#return "$pass1";
print "$pass1";

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to