From: Andreas A. <a.a...@th...> - 2001-08-24 19:12:05
|
Hi Alex, >>> The line $argv = $HTTP_SERVER_VARS["argv"]; should work only > >>> when the php file is executed by Apache? > > > > No, it's executed on the command line. No Webserver interaction. > > really! cool. > one would think that $HTTP_SERVER_VARS would be associated with > running php through cgi or as a module, but hey :) > _a > > > argv is just the parameter list: > > > > script.php one two three .. > > [0] = script.php > > [1] = one > > [2] = three > > ... Jepp, that's really nice. The naming is a bit misleading, but when you interpret the command line as a webserver/CGI interface everything is right again :-) Andi |