Re: Input data for php program.

From: Date: Wed, 29 May 2002 10:02:27 +0000
Subject: Re: Input data for php program.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99672@lists.php.net to get a copy of this message
In article <20020529094837.73303.qmail@pb1.pair.com>, ic_sidney@yahoo.com says... > Hi, > > I am designing a php program running in Linux, i would like to know can i > design a program by adding permeter after the file name? > > Just like the following, "adding.php" is the filename and "123" > ,"456" is > the data which i want to input for the program? > > [root@localhost bin]# php adding.php 123 456 > > Could someone help me? and my e-mail address is c_sidney@hotmail.com > > Best regards, > Sidney I believe you can use argv and argv, or open /dev/stdin and read parameters from it. -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#99672) next »