Hi,
I am trying to execute this command
if ; then
but getting error .Some problem with reteriving the value of $exception_info.
Please help.Its urgent.
thanks (4 Replies)
Hi
I am trying to fetch the rows with match string "0000001234"
Input file looks like below:
09 0 XXX 0000001234 Z 1
09 0 XXX 0000001234 Z 1
09 0 XXX 0000001234 Z 1
09 0 XXX 0000001234 Z 1
09 0 XXX 0000001234 Z 1... (6 Replies)
Hi
I am having a file with content as,
<name>usrname</name> <value>ravistej</value>
<name>pswd</name> <value>asdfgzxcv</value>
.
.
.
.
<name>abc</name> <value>xyz</value>
From this file,
i want to fetch the string present between '<value>' and '</value>' and store the values into... (9 Replies)
I have a file with some SQL query, I want to fetch only Table Name from that file line by line.
INPUT FILE
SELECT * FROM $SCHM.TABLENAME1;
ALTER TABLE $SCHM.TABLENAME1 ADD DateOfBirth date;
INSERT INTO $SCHM.TABLENAME1 (CustomerName, Country) SELECT SupplierName, Country FROM $SCHM.TABLENAME2... (2 Replies)
I need to insert a comment string to a couple of fields for every line in the file. Different comment string for each field.
In below file, fields 7 and 8
"R","1","t0000684","","10/31/2013","10/31/2013","","","","750.23"... (6 Replies)
Hi All,
How to fetch the particular row based on my search command. For example
Source Column
Column A Column B
001,56123456
002,57123456
003,123456
Expected Output:
003,123456
To get this output I tried below mentioned function
grep '123456' filename.txt (4 Replies)
I need to read a text file and insert a string every n lines, but also have the line counter restart when I come across a header string.
Line repeating working every 3 lines using code:
sed '0~3 s/$/\nINSERT/g' < INPUT/PATH/FILE_NAME.txt > OUTPUT/PATH/FILE_NAME.txt
I cannot seem to find... (1 Reply)
Dears, I have string like below in my csv file
<someTechnicalDetails><someTechnicalDetails>HSI</someTechnicalDetails,1234564
<someTechnicalDetails><someTechnicalDetails>Voice</someTechnicalDeta,12345673
<someTechnicalDetails><someTechnicalDetails>IPTV</someTechnicalDetai,12345673
and I... (2 Replies)
i am having file like this
#!/bin/bash
read -p 'Username: ' uservar
match='<color="red" />'
text='this is only a test
so please be patient
<color="red" />'
echo "$text" | sed "s/$match/&$uservar\g"
so desireble output what i want is if user type MARIA
this is only a test
so please... (13 Replies)
Discussion started by: tomislav91
13 Replies
LEARN ABOUT PHP
mongoexception
MONGOEXCEPTION(3) 1 MONGOEXCEPTION(3)The MongoException classINTRODUCTION
Default Mongo exception.
This covers a bunch of different error conditions that may eventually be moved to more specific exceptions, but will always extend Mon-
goException.
o The MongoSomething object has not been correctly initialized by its constructor Code: 0 Probably your Mongo object is not con-
nected to a database server.
o zero-length keys are not allowed, did you use $ with double quotes? Code: 1 You tried to save "" as a key. You generally should
not do this. "" can mess up subobject access and is used by MongoDB internally. However, if you really want, you can set
mongo.allow_empty_keys to true in your php.ini file to override this sanity check. If you override this, it is highly recommended
that you set error checking to strict to avoid string interpolation errors.
o '.' not allowed in key: <key> Code: 2 You attempted to write a key with '.' in it, which is prohibited.
o insert too large: <size>, max: <max> Code: 3 You're attempting to send too much data to the database at once: the database will
only accept inserts up to a certain size (currently 16 MB).
o no elements in doc Code: 4 You're attempting to save a document with no fields.
o size of BSON doc is <size> bytes, max <max>MB Code: 5 You're attempting to save a document that is larger than MongoDB can save.
o no documents given Code: 6 You're attempting to batch insert an empty array of documents.
o MongoCollection::group takes an array, object, or MongoCode key Code: 7 Wrong type parameter send to MongoCollection.group(3).
o field names must be strings Code: 8 You should format field selectors as array("field1" => 1, "field2" => 1, ..., "fieldN" => 1).
o invalid regex Code: 9 The regex passed to MongoRegex is not of the correct form.
o MongoDBRef::get: $ref field must be a string Code: 10
o MongoDBRef::get: $db field must be a string Code: 11
o non-utf8 string: <str> Code: 12 This error occurs if you attempt to send a non-utf8 string to the database. All strings going
into the database should be UTF8. See php.ini options for the transition option of quieting this exception.
o mutex error: <err> Code: 13 The driver uses mutexes for synchronizing requests and responses in multithreaded environments. This
is a fairly serious error and may not have a stack trace. It's unusual and should be reported to maintainers with any system
information and steps to reproduce that you can provide.
o index name too long: <len>, max <max> characters Code: 14 Indexes with names longer than 128 characters cannot be created. If you
get this error, you should use MongoCollection.ensureIndex(3)'s "name" option to create a shorter name for your index.
CLASS SYNOPSIS
MongoException
MongoExceptionextends
Exception
PHP Documentation Group MONGOEXCEPTION(3)