Re: Can a Php-Gtk app accept command line arguments?
| From: | Scott Mattocks | Date: | Thu, 13 Jan 2005 21:51:50 +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-5445@lists.php.net to get a copy of this message | ||
dpgirago@mdanderson.org wrote:
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?Check out the PHP manual section on running from the command line. http://www.php.net/manual/en/features.commandline.php There are some examples there and the user comments should be helpful. Also there are some PEAR classes to help make things easier/prettier. (WARNING: Flagrant self-promotion!) http://pear.php.net/package/Console_Getargs -- Scott Mattocks scott@crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks