Professional Web Applications Themes

#26035 [Fbk->Opn]: Opening existing CDB does not work - PHP Development

ID: 26035 User updated by: a dot stagl at gmx dot at Reported By: a dot stagl at gmx dot at -Status: Feedback +Status: Open Bug Type: DBM/DBA related Operating System: Win2k PHP Version: 4.3.3 New Comment: I sent it to yob by PM. Previous Comments: ------------------------------------------------------------------------ [2003-10-30 08:21:03] [email]iliaaphp.net[/email] Could you please provide the database in question. ------------------------------------------------------------------------ [2003-10-30 05:30:43] a dot stagl at gmx dot at Description: ------------ I'm trying to open the contacts-databse from a nokia 9210i mobile, but it doesn't work. Reproduce code: --------------- $db_conn = dba_open("contacts.cdb","r","cdb"); if (!$db_conn) die ("opening failed"); $key = dba_firstkey ($db_conn); ...

  1. #1

    Default #26035 [Fbk->Opn]: Opening existing CDB does not work

    ID: 26035
    User updated by: a dot stagl at gmx dot at
    Reported By: a dot stagl at gmx dot at
    -Status: Feedback
    +Status: Open
    Bug Type: DBM/DBA related
    Operating System: Win2k
    PHP Version: 4.3.3
    New Comment:

    I sent it to yob by PM.


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-10-30 08:21:03] [email]iliaaphp.net[/email]

    Could you please provide the database in question.

    ------------------------------------------------------------------------

    [2003-10-30 05:30:43] a dot stagl at gmx dot at

    Description:
    ------------
    I'm trying to open the contacts-databse from a nokia 9210i mobile, but
    it doesn't work.


    Reproduce code:
    ---------------
    $db_conn = dba_open("contacts.cdb","r","cdb");
    if (!$db_conn) die ("opening failed");
    $key = dba_firstkey ($db_conn);
    while ($key != false)
    {
    echo $key."<br />";
    echo dba_fetch ($key, $db_conn)."<br /><br />";
    $key = dba_nextkey ($db_conn);
    }
    dba_close($db_conn);

    Expected result:
    ----------------
    ....to get a list of key-value pairs.

    Actual result:
    --------------
    The code didn't produce the expected output nor any error message. It
    seems that the commands dba_firstkey and dba_nextkey always return
    false instead of a key.



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=26035&edit=1[/url]
    a dot stagl at gmx dot at Guest

  2. #2

    Default #26035 [Fbk->Opn]: Opening existing CDB does not work

    ID: 26035
    User updated by: a dot stagl at gmx dot at
    Reported By: a dot stagl at gmx dot at
    -Status: Feedback
    +Status: Open
    Bug Type: DBM/DBA related
    Operating System: Win2k
    PHP Version: 4.3.3
    New Comment:

    Unfortunatly, I cannot provide you the DB which I'm refering to,
    because - as already mentioned - it is the contacts-database from a
    nokia 9210i which contains sensitive data. I tried to get a sample
    contacts.cdb directly from nokia, but they haven't been supportive :-(

    But I found the following two cdb-databases on the internet:

    [url]http://web.mit.edu/cascon/updates/cascon.cdb[/url] (does not work with the
    provided code)

    [url]http://cvs.sourceforge.net/viewcvs.py/*checkout*/cdbfile/cdbFile/cdbFile/Attic/test.cdb?rev=1.1.1.1[/url]
    (works fine with my code)

    HTH


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-10-30 20:36:06] [email]sniperphp.net[/email]

    Please provide the information HERE, not via private mail!


    ------------------------------------------------------------------------

    [2003-10-30 10:12:05] a dot stagl at gmx dot at

    I sent it to yob by PM.

    ------------------------------------------------------------------------

    [2003-10-30 08:21:03] [email]iliaaphp.net[/email]

    Could you please provide the database in question.

    ------------------------------------------------------------------------

    [2003-10-30 05:30:43] a dot stagl at gmx dot at

    Description:
    ------------
    I'm trying to open the contacts-databse from a nokia 9210i mobile, but
    it doesn't work.


    Reproduce code:
    ---------------
    $db_conn = dba_open("contacts.cdb","r","cdb");
    if (!$db_conn) die ("opening failed");
    $key = dba_firstkey ($db_conn);
    while ($key != false)
    {
    echo $key."<br />";
    echo dba_fetch ($key, $db_conn)."<br /><br />";
    $key = dba_nextkey ($db_conn);
    }
    dba_close($db_conn);

    Expected result:
    ----------------
    ....to get a list of key-value pairs.

    Actual result:
    --------------
    The code didn't produce the expected output nor any error message. It
    seems that the commands dba_firstkey and dba_nextkey always return
    false instead of a key.



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=26035&edit=1[/url]
    a dot stagl at gmx dot at Guest

Similar Threads

  1. None of my tools work in an existing doent
    By wescarmichael1 webforumsuser@macromedia.com in forum Macromedia Freehand
    Replies: 2
    Last Post: December 4th, 03:13 PM
  2. #26035 [Asn]: Opening existing CDB does not work
    By sniper@php.net in forum PHP Development
    Replies: 0
    Last Post: October 31st, 01:29 PM
  3. #26035 [Opn->Asn]: Opening existing CDB does not work
    By sniper@php.net in forum PHP Development
    Replies: 0
    Last Post: October 31st, 01:27 PM
  4. #26035 [Opn->Fbk]: Opening existing CDB does not work
    By iliaa@php.net in forum PHP Development
    Replies: 1
    Last Post: October 31st, 01:36 AM
  5. #26035 [NEW]: Opening existing CDB does not work
    By a dot stagl at gmx dot at in forum PHP Development
    Replies: 0
    Last Post: October 30th, 10:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139