[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Query regarding PHP
- From: Stefan Heinrichsen <gelbemauer gmx de>
- To: Pluggable Authentication Modules <pam-list redhat com>
- Subject: Re: Query regarding PHP
- Date: Wed, 14 Nov 2007 15:00:45 +0100
Hello,
On Mittwoch, 14. November 2007, Varun Vijayvargiya wrote:
> I am trying to call a PAM code from within a PHP scipt and also
> passing 2 parameters like this
>
> $args=$uname." ".$upass;
>
> $command="./pampgm.o ".escapeshellcmd($args);
More a PHP question than a pam-question
escapeshellcmd will even escape the " " between $uname and $upass.
So this should be right:
$command="./pampgm.o ".escapeshellcmd($uname)." ".escapeshellcmd($upass);
Stefan
> passthru($command);
>
> $uname and $upass are two variables that were entered into a HTML form
>
> but the code is not executing correctly
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]