problem with PHP from commandline

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rpnew
    New Member
    • Aug 2007
    • 189

    problem with PHP from commandline

    Hi,
    i'm executing PHP script from command line. It workds perfectly on my machine but gives error on server. It is showing problem with $argv variable. On my machine script runs and on server gives error "Undefined variable: argv" and hence dosent run. I know that there is some issue with PHP version. i'm running PHP 5.2.5 (cli) where as on server its 4.2.2 .

    So tell me what do i need to do in this case.??

    Regards,
    RP
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, RP.

    You might find this page to be of some interest, especially the part about the register_argc_a rgv directive.
    Last edited by pbmods; May 30 '08, 01:33 AM. Reason: Removed mirror code for php.net link.

    Comment

    • rpnew
      New Member
      • Aug 2007
      • 189

      #3
      Originally posted by pbmods
      Heya, RP.

      You might find this page to be of some interest, especially the part about the register_argc_a rgv directive.
      Hi,
      thanks for the reply.. i think for both of my cases i need to reconfigure my PHP mostly to newer version..

      Regards,
      RP

      Comment

      Working...