[linux] Re: PHP: parameter passing aan exec

Hans Paijmans j.j.paijmans op uvt.nl
Wo Sep 20 14:02:55 CEST 2006


Rob Sterenborg wrote:
> On Wed, September 20, 2006 12:11, Hans Paijmans wrote:
> 
>> Is er een goede reden waarom de exec-functie van PHP maar
>> drie commandline parameters wil doorgeven???


Dank voor het antwoord. Ik heb de regel

  $command="sh paai_mix hoogte_diff result ".$alpha." ".$beta." x ";

vervangen door

  $command=sprintf("sh paai_mix hoogte_diff result %d %d %d",
          $alpha,$beta,$gamma);

en nou doettieut wel.

Toch vreemd.

-- 
Dr. J.J. Paijmans
Tilburg University: Dept. of Linguistics & AI             013-4662693
Rijksdienst Oudheidkundig Bodemonderzoek                  033-4227591
Maastricht University: IKAT, Faculty of General Sciences  043-3883477
Thuis: Kleine St.Jansstraat 3, 3811 HV  Amersfoort        033 - 4722579
http://paai.uvt.nl     http://paijmans.net        GSM: +31 621 961 083





More information about the Linux mailing list