PHP Classes
elePHPant
Icontem

Undefined variable: argc in BmpCrypt_CmdLine_Example.php

Recommend this page to a friend!

      BmpCrypt  >  All threads  >  Undefined variable: argc in...  >  (Un) Subscribe thread alerts  
Subject:Undefined variable: argc in...
Summary:Notice: Undefined variable: argc in C:\wamp\www\bmpcrypt-2005-04
Messages:5
Author:khushboo yadav
Date:2013-08-13 20:33:56
Update:2013-08-27 15:48:28
 

  1. Undefined variable: argc in...   Reply   Report abuse  
khushboo yadav - 2013-08-13 20:33:57
this error is coming :
"Notice: Undefined variable: argc in C:\wamp\www\bmpcrypt-2005-04-21\BmpCrypt_CmdLine_Example.php on line 5

USAGE: To encrypt data and hide it in a bitmap file: php -f BmpCrypt_CmdLine_Example.php -e bitmap_file data_file output_file [key] [level] To decrypt data and recover it from a bitmap file: php -f BmpCrypt_CmdLine_Example.php -d bitmap_file output_file [key]"


Why is it so?whats the matter with the variable argc ?? plz help

  2. Re: Undefined variable: argc in...   Reply   Report abuse  
Lionel F. Lebeau - 2013-08-18 11:53:27 - In reply to message 1 from khushboo yadav
In your php.ini, verify if register_argc_argv = 1 (or On)

  3. Re: Undefined variable: argc in...   Reply   Report abuse  
khushboo yadav - 2013-08-26 18:25:51 - In reply to message 2 from Lionel F. Lebeau
Actually i am new in all this.so i have this lil bit of doubt that: Do i necessarily have to run the Bmp_Crypt_Example.php through the command line...or if i just run the Decrypt_Webpage_Example.php in the localhost as the web page is enough for encrypting and decrypting data as per the code??

  4. Re: Undefined variable: argc in...   Reply   Report abuse  
Lionel F. Lebeau - 2013-08-26 21:00:19 - In reply to message 3 from khushboo yadav
Infact, it depends on what you intend to do ^^
Do you -need- to use it through th e command line, or will you only use it through a navigator ?
If you're never going to need use CLI for crypt/decrypt page, then you don't need to modify your php.ini

  5. Re: Undefined variable: argc in...   Reply   Report abuse  
khushboo yadav - 2013-08-27 15:48:28 - In reply to message 4 from Lionel F. Lebeau
yup, i am more interested in using it through the navigator only.