howto call php script from cgi script

From: Date: Thu, 11 Apr 2002 13:47:16 +0000
Subject: howto call php script from cgi script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92567@lists.php.net to get a copy of this message
Hi, 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. Regards, Sanjay ### temp.cgi #!/usr/bin/perl print "Content-type: text/html\n\n"; $passwd="testpass"; $p=/usr/bin/php /full/path/md5.php pass=$passwd|tail -1; print "pass is $p\n"; #### md5.php <? $pass1=md5("$pass"); #return "$pass1"; print "$pass1"; ?>

« previous php.general (#92567) next »