Re: Can a Php-Gtk app accept command line arguments?

From: Date: Thu, 13 Jan 2005 22:26:16 +0000
Subject: Re: Can a Php-Gtk app accept command line arguments?
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5450@lists.php.net to get a copy of this message
$_SERVER['argc'] & $_SERVER['argv'] (set php.ini register_argc_argv on ) , or simply $argc & $argv depending on your php.ini configuration , hold the count of and values of any passed command line parameters. ----- Original Message ----- From: <dpgirago@mdanderson.org> To: <php-gtk-general@lists.php.net> Sent: Friday, January 14, 2005 1:32 AM Subject: [PHP-GTK] Can a Php-Gtk app accept command line arguments? > I've a need to create an application that can accept command line > arguments. > > Essentially, a patient ID and a treatment field (e.g., a right lung tumor) > would be selected from the hospital's main patient information management > system, then passed to the application in question, which would then query > the hospital's database using the passed arguments as filters. The app > must be separate from the other hospital software because of FDA approval > issues. > > I prototyped for my employer a PHP-GTK application that allowed the user > to select patient and treatment field within the application, then do > various other treatment related stuff with it, and this all worked very > well, but this approach seems to be not secure enough in regard to > selecting the correct patient, etc... leading to the above specification. > > So before I proceed further with PHP-GTK, I need to determine if a PHP-GTK > application can accept command line arguments. If so, can someone provide > a brief example about how to catch the arguments inside the application? > > And lastly, please cc me if replying. Mail from the lists.php.net domain > has not been getting through since before Xmas. > > Thank you all. > > David

« previous php.gtk.general (#5450) next »