Questions tagged [phplib]
11 questions
12
votes
1 answer
PDFMerger with FPDI-PDF-PARSER
FPDI PDF Files merger is being used. However, I ran into the following issue while trying to merge PDF files versions 1.5 and higher. The following was the error I received:
This document (doc.pdf) probably uses a compression technique which is
…
![](../../users/profiles/2980873.webp)
hello_its_me
- 712
- 18
- 48
2
votes
0 answers
MongoDB atlas PHPLIB
I've got this error:
MongoDB\Driver\Exception\ConnectionTimeoutException: Failed to look up SRV record "_mongodb._tcp.training.gd45p.mongodb.net": No such file or directory
While executing this code:
$mongo = new…
![](../../users/profiles/8777869.webp)
Mr.Newt
- 21
- 1
- 3
1
vote
0 answers
Zkteco Tad php Library cannot connect
I'm Using this Php Library for Zkteco device. But it seems not working or connecting to the device Github Link.
Fatal error: Uncaught TADPHP\Exceptions\ConnectionError: Imposible iniciar conexión con dispositivo 192.168.2.63 in…
![](../../users/profiles/12478258.webp)
ewask etyra
- 23
- 4
1
vote
0 answers
1
vote
1 answer
Storing and retrieving dates in Mongodb 3.2 with PHPLIB
Using Mongo and PHP how does one store a datetime type, and then retrieve by date?
This is what I have for inserting, but it stores the date as a string:
$collection->insertOne(['date_created' => '2017-01-02 17:20:15']);
How should I be sending the…
![](../../users/profiles/36545.webp)
kylex
- 13,335
- 30
- 103
- 169
0
votes
1 answer
Error implementing simple Pagination with skip() and limit() in MongoDB PHP driver and related PHPLib library
I am trying to implement pagination when accessing data from MongoDB using PHP. In MySQL, I would have used OFFSET and LIMIT. My Google search told me that the alternative of PHP-MongoDB is skip() and limit().
But when I try to use those functions,…
![](../../users/profiles/8803325.webp)
JBel
- 189
- 1
- 1
- 16
0
votes
0 answers
How to set a sequential INTEGER autoincrement id in MongoDB using PHP?
Note: I have written an example (SSCCE). That code can be found here.
I have a .csv file like so:
frame.cap_len
64
60
...
I need to insert this data into MongoDB database using PHP. So I have a database named Traffic and it contains a collection…
![](../../users/profiles/8803325.webp)
JBel
- 189
- 1
- 1
- 16
0
votes
2 answers
How to add GraphAware Library to project
I am creating a project in php and want to configure it with my Neo4j graph data. Here is the code:
![](../../users/profiles/6076985.webp)
James Faulkner
- 91
- 8
0
votes
0 answers
MongoDB (PHPLib) ObjectID changes after upsert
I am having a problem with MongoDB ID changing after I upsert a document.
public function upsert(User $user) {
$userMongo = new UserMongo($user);
if(!$userMongo->getUuid()) {
$userMongo->setUuid(new ObjectID);
…
![](../../users/profiles/7336953.webp)
John Doe
- 60
- 2
- 8
0
votes
1 answer
MongoDB and PHPLib retrieving an embedded document from a cursor
I have the following code:
bbcData->programmeData;
$result = $collection->find( [ '_id' => 'b007jwd9'] );
foreach…
![](../../users/profiles/5351162.webp)
kulsoompatel
- 200
- 2
- 15
-9
votes
2 answers
Tad PHP connection error
I have used tad php from github(https://github.com/cobisja/tad-php)now I am getting an error displayed below.
Fatal error: Uncaught exception 'TADPHP\Exceptions\ConnectionError' with message 'Imposible iniciar conexión con dispositivo…
![](../../users/profiles/7875765.webp)
Aihtsham Ali
- 104
- 1
- 12