I am running php as a shell script.
(Not sure if the "shell script" is correct. The file starts with #!/usr/bin/php)
This works great. But the MongoDB class does not load, since the correct php.ini (having extension=mongo.so) is not used.
How can i use php.ini?
Already tried #!/usr/bin/php -c /usr/local/lib/php.ini
But I still get the same error - Fatal error: Class 'Mongo' not found
What can be done?
source
share