PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Sunday the 1st of April, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[16:17:49] <Alucard_> Hi --- I want to use MongoDB/Collection, Database etc. classes on php but I think I installed wrong driver or sth
[16:18:12] <Alucard_> I can only use MongoDB\Driver
[16:18:18] <Alucard_> and subclasses
[16:19:33] <Derick> Alucard_: did you install the php library with composer too? You need that to get MongoDB\Collection etc
[16:19:34] <Alucard_> I can't use functions in documentation, such as findOne, find
[16:19:41] <Alucard_> No...
[16:19:59] <Derick> http://php.net/manual/en/mongodb.tutorial.library.php
[16:20:02] <Derick> has instructions
[16:20:06] <Alucard_> thx
[16:20:11] <Alucard_> I want to ask
[16:20:18] <Alucard_> what was I doing all this time?
[16:20:48] <Alucard_> what is this mongodb/driver
[16:21:57] <Alucard_> Also if it's redundant I want to uninstall it
[16:24:03] <Derick> no, you need two parts: the PHP extension, and to get a more easy API, the PHP library
[16:25:59] <Alucard_> Understood... Thank you
[16:26:20] <Alucard_> I guess resisting to installing composer was what drove me wrong way
[16:27:23] <Derick> you can't really do without composer anymore
[16:46:22] <Alucard_> Finally it's working... I really spends hours for just installing stuff I didn't know before
[16:46:33] <Alucard_> Is this normal?
[16:46:40] <Derick> No :)
[16:46:45] <Alucard_> Oh no
[16:46:45] <Derick> Should take about 3 mins
[16:47:04] <Alucard_> I am inattentive maybe
[16:47:14] <Alucard_> I try first
[16:47:22] <Alucard_> then look at the instructions
[16:47:34] <Derick> I dunno, but I just do: pecl install mongodb && php ~/composer.phar require mongodb/mongodb
[16:47:53] <Derick> (and add "extension=mongodb" to php.ini)
[16:48:26] <Alucard_> I didn't know pecl
[16:48:35] <Alucard_> I installed php today
[16:49:16] <Alucard_> I modified php.ini to show errors but it didn't because I didn't know there was a display_errors=Off **below** my update
[16:49:35] <Alucard_> and so many other unfortunate things happened today...