I am using PHP 5.4.3 on wamp(local) and mongodb. When i run script from browser then it runs fine. but when i try to run it from command prompt (CLI). It gives me fatal error like 'Mongo class not found'.
Can anyone suggested me what i have done wrong here.
Thanks Ashsih Goyal
Look at output of php -i
, "Loaded Configuration File" will tell you which ini file is used. Add the dll there.
Friend In Wamp for Browser based request WAMP uses php.ini stored with apache mostly found in apache directry(search there) and Command Line based request are directly made with php.exe and php.ini will found in same directory in which php.exe so enable modules in that ini which you wants in command line.