argv[0] always null

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    argv[0] always null

    In my PHP, argv[0] always return correct value.
    In a remote server, PHP returns for argv[0] always null.
    I believe this is a "php.ini" problem but from PHP help I don't found
    anything.

    1. What is the problem?
    2. How to fix it? (or...)
    3. With what I can replace argv[0]?


    thanks!


  • Alvaro G. Vicario

    #2
    Re: argv[0] always null

    *** <- Chameleon -> escribió/wrote (Tue, 14 Sep 2004 00:47:13 +0300):[color=blue]
    > In my PHP, argv[0] always return correct value.
    > In a remote server, PHP returns for argv[0] always null.
    > I believe this is a "php.ini" problem but from PHP help I don't found
    > anything.[/color]

    register_argc_a rgv
    [color=blue]
    > 3. With what I can replace argv[0]?[/color]

    $_SERVER['argv'][0]


    --
    -+ Álvaro G. Vicario - Burgos, Spain
    +- http://www.demogracia.com (la web de humor barnizada para la intemperie)
    ++ Las dudas informáticas recibidas por correo irán directas a la papelera
    -+ I'm not a free help desk, please don't e-mail me your questions
    --

    Comment

    Working...