php-mongodb Questions

1

sometimes there is a bug (~30%): Failed to connect to: IP:2333: Read timed out after reading 0 bytes, waited for 0.000000 seconds Web server Apache/2.2.16 PHP version PHP 5.3.3-7+squeeze15 ...
Catechu asked 10/7, 2013 at 17:29

3

Solved

I have installed rockmongo in my ubuntu from this site.When I tried to open the rockmongo from browser it showing fatal error as like mentioned below. Error: Fatal error: ini_set(): To prevent da...
Bobbery asked 9/4, 2014 at 12:22

3

Solved

I've just set up RockMongo as per these instructions, but I can't see how to change my username/password from the defaults (admin/admin). In the config.php file there are two commented out lines t...
Afebrile asked 29/2, 2012 at 16:35

2

Solved

How can you drop a numeric collection from MongoDB? PRIMARY> db.123456789011.remove({}); Tue Mar 20 08:42:51 SyntaxError: missing ; before statement (shell):1 PRIMARY> db.123456789011.drop(...
Stuccowork asked 20/3, 2012 at 15:43

3

Solved

I have a somewhat complex query that is very critical to my application. $cur = $col->find( array ( '$or' => array( array('owner' => $my_id), array('owner' => array('$in' => $fr...
Penury asked 24/4, 2014 at 8:19

2

A simple query like this: $a = array('_id' => array( '$in' => array_values($ids) ) ); var_dump($a); $cursor2 = $data->find( $a ); works in mongodb 2.4.9, however, in 2.6.0-rc2 returns ...
Selves asked 30/3, 2014 at 18:28

2

Solved

I want to replace a document when this already exists and if it doesn't I want it inserted. How can I do that in mongoDb? I need something like this, but in one query: find by a "where statement...
Nightingale asked 6/11, 2013 at 14:6

4

I am running the php script which fetch data from mongodb. I have a very huge database and I am getting this exception ..my mongodb version is 1.6.5 PHP Fatal error: Uncaught exception 'MongoCurso...
Heptagonal asked 6/4, 2011 at 5:37

5

I'm working on a web application which is trying to connect to a MongoDB database from PHP. In the 90% of page loads everything works fine, but in the other 10% it throws the following exception wh...
Shit asked 7/11, 2012 at 17:24

1

Solved

I'm querying my database using aggregation and pipeline, with two separate queries: $groups_q = array( '$group' => array( '_id' => '$group_name', 'total_sum' => array('$sum' => 1) ...
Echt asked 29/3, 2013 at 3:19

1

Solved

I am developing a PHP web application using a MongoDB replicaset to store my data. I occasionally receive the following error: Fatal error: Uncaught exception 'MongoConnectionException' with mes...
Damselfish asked 30/1, 2013 at 1:25

2

Solved

I built a MongoDB. I want to do aggregation by certain grouping. I found this document, which will do that for me. Everything is ok, but certain limitations are pointed out: Output from the pipel...
Gyrostat asked 10/1, 2013 at 10:33

2

Solved

I have an abstract parent class Mongo_Document (from mongodb-php-odm) and an inherited class Model_ActionPlan. Mongo_Document has magic __isset and __get methods that interact with an array inside ...
Corena asked 11/12, 2012 at 2:54

1

Solved

I'm attempting to set all incoming read queries to hit slaves on my mongo servers. I see in the PHP docs a reference to: MongoCursor::$slaveOkay = true; However, this just seems to setup querie...
Jair asked 20/11, 2012 at 14:50

2

Solved

I might be a bit in over my head on this as I'm still learning the ins and outs of MongoDB, but here goes. Right now I'm working on a tool to search/filter through a dataset, sort it by an arbitra...
Munda asked 18/8, 2012 at 1:25

1

I am wondering why I am getting the following php notice: ( ! ) Notice: Mongo::__construct(): parsing servers in C:\htdocs\multishop\library\Lupi\Resource\Odm.php on line 38 Call Stack # Time Memo...
Doit asked 8/7, 2012 at 5:15

1

I am developing a website using PHP and mongodb. I access the mongodb with PECL-mongo, and have run into an annoyance. Every now and then, I get an error like this (I've anonymized the paths) Fata...
Morgen asked 29/7, 2011 at 19:31

1

Solved

I'm using MongoDB and PHP and trying to do a $in based on a generated array. When I specify the same array manually, it works, but when I build it, it return any results with the same data. There...
Haul asked 30/3, 2012 at 21:15

1

Solved

Where can I get mongo php driver for PHP 5.4? For windows vc9 not thread safe.
Clarissa asked 6/3, 2012 at 1:53

1

Solved

I need to store some data that is essentially just an array of key-value pairs of date/ints, where the dates will always be unique. I'd like to be able to store it like an associative array: arra...
Tenuous asked 29/2, 2012 at 20:49

1

Solved

I’m having trouble with this MongoDB query using PHP array syntax. This is a direct version of the query I want to use. db.collection.find({ $or: [ {$and : [{X:1}, {X: {$gt: 100}}]}, {$and : [{...
Fiona asked 1/1, 2012 at 17:58

1

I'm having trouble figuring out how to construct an update query in PHP that will update document IDs X,Y, and Z. Does anyone have experience with this? $ids[] = array( new MongoId('4eaaf929498fe...
Bride asked 28/10, 2011 at 19:49

3

Solved

I have 2 collections: A (3.8M docs) and B (1.7M docs) I have a PHP script that I run from the shell that: loops over each record in A ~60% of the time, it does a findOne on B (using _id) does ...
Celluloid asked 24/7, 2011 at 7:18

1

Solved

I'm trying to make a board with mongoDB. I want to assign document ID with ObjectID. If a user can access to a document page by http://www.example.com/4easdf123123 where "4easdf123123" is a mongo...
Homozygote asked 16/8, 2011 at 1:32

1

I'm trying to get the logger working in the Doctrine ODM. // .. some initialization code here ... $mongoConfig->setLoggerCallable(function(array $log){ print_r($log); die("Mongo Logging Call...
Vikiviking asked 5/7, 2011 at 15:21

© 2022 - 2024 — McMap. All rights reserved.