Ask a Question related to PHP Programming, Design and Development.

  1. #1

    Default Strange problem

    Dear All:

    I have used MySQL as prototype on an application that I am developing.
    The project has been
    approved and I am now moving to Oracle for the production run. I have a
    section
    that deals with user password. My front end is in JSP/Servlet using
    Apache tomcat and talking
    to Oracle 8i using JDBC driver from Oracle (but I am using the Oracle 9i
    driver).
    The user password, I am using MD5 hashes and storing the string copy of
    that hashes onto the database (as varchar).
    MySQL was ok. However, when I moved the application to talk to Oracle,
    I am always getting a different string back
    from the database than what I am saving into it. However, I am
    always getting back, from ORacle, the same
    set of characters. So it was consistently different but consistently in
    the same format. So I think there
    are some character conversion that is happening. Some of the
    characters are non-printable characters so
    they look like rubbish. But you can still compare with your bare eyes
    as the strings always contain the
    same set of characters.

    I think I am missing something as to how Oracle handle non-printable
    character strings.
    Any help much appreciated!!

    Please email me as well as posting back to the newsgroup.

    Thanks

    --Vincent
    [email]yauv@ohsu.edu[/email]


    Vincent Yau Guest

  2. Similar Questions and Discussions

    1. Strange Problem with XML
      Hi I am retrieving information from a DB in XML but in a field I have an international number +331234567 but when I am loading the file with...
    2. Strange FDF problem
      I am developing an fdf that fills in 3 form values into my pdf, and am having some strange problems. First off, this project is sort of an...
    3. Strange problem on IE6
      I have created a movie with Flash Pro 8. Strange problem is that on some computers (not all of them), it seams that all objects that have filters...
    4. strange problem with sed
      hy group i know, this is a frequently question answered many times but... i simply couldn't get it to work! i try to substitute in sed a...
    5. [PHP] Strange Problem
      This is an IIS issue. The install.txt has specific information on this topic, have a look. Also, this comes up a lot and the following bug report...
  3. #2

    Default Re: Strange problem

    Try a binary datatype for that column. RAW should work.

    Vincent Yau <yauv@ohsu.edu> wrote in news:3F099D49.BDDAAE5E@ohsu.edu:
    > Dear All:
    >
    > I have used MySQL as prototype on an application that I am developing.
    > The project has been
    > approved and I am now moving to Oracle for the production run. I have
    a
    > section
    > that deals with user password. My front end is in JSP/Servlet using
    > Apache tomcat and talking
    > to Oracle 8i using JDBC driver from Oracle (but I am using the Oracle
    9i
    > driver).
    > The user password, I am using MD5 hashes and storing the string copy of
    > that hashes onto the database (as varchar).
    > MySQL was ok. However, when I moved the application to talk to Oracle,
    > I am always getting a different string back
    > from the database than what I am saving into it. However, I am
    > always getting back, from ORacle, the same
    > set of characters. So it was consistently different but consistently
    in
    > the same format. So I think there
    > are some character conversion that is happening. Some of the
    > characters are non-printable characters so
    > they look like rubbish. But you can still compare with your bare eyes
    > as the strings always contain the
    > same set of characters.
    >
    > I think I am missing something as to how Oracle handle non-printable
    > character strings.
    > Any help much appreciated!!
    >
    > Please email me as well as posting back to the newsgroup.
    >
    > Thanks
    >
    > --Vincent
    > [email]yauv@ohsu.edu[/email]
    >
    >
    >
    Chuck Guest

  4. #3

    Default Re: Strange problem

    Perhaps you should convert the binary hash to Hex string
    and then save it to the database as varchar.
    This way, it should have no problem with any database systems.
    (this is how I do, but don't know about other people)
    _________________________________
    Bugzero all-in-one: bug tracking & help desk
    Free try: [url]http://www.websina.com/bugzero/[/url]


    Vincent Yau <yauv@ohsu.edu> wrote in message news:<3F099D49.BDDAAE5E@ohsu.edu>...
    > Dear All:
    >
    > I have used MySQL as prototype on an application that I am developing.
    > The project has been
    > approved and I am now moving to Oracle for the production run. I have a
    > section
    > that deals with user password. My front end is in JSP/Servlet using
    > Apache tomcat and talking
    > to Oracle 8i using JDBC driver from Oracle (but I am using the Oracle 9i
    > driver).
    > The user password, I am using MD5 hashes and storing the string copy of
    > that hashes onto the database (as varchar).
    > MySQL was ok. However, when I moved the application to talk to Oracle,
    > I am always getting a different string back
    > from the database than what I am saving into it. However, I am
    > always getting back, from ORacle, the same
    > set of characters. So it was consistently different but consistently in
    > the same format. So I think there
    > are some character conversion that is happening. Some of the
    > characters are non-printable characters so
    > they look like rubbish. But you can still compare with your bare eyes
    > as the strings always contain the
    > same set of characters.
    >
    > I think I am missing something as to how Oracle handle non-printable
    > character strings.
    > Any help much appreciated!!
    >
    > Please email me as well as posting back to the newsgroup.
    >
    > Thanks
    >
    > --Vincent
    > [email]yauv@ohsu.edu[/email]
    Blue Jean Guest

  5. #4

    Default Re: Strange Problem

    You'll get this in IIS if you request a page that should be parsed by the PHP CGI that does not exist. IIS trys to load the script into the CGI but gets no results since there was no page to load. I think it's an IIS bug.... i.e. you go to [url]www.domain.com/page1.php[/url]
    but there is no page1.php file. So you'd expect to get a 404 error. but IIS gives you the CGI error instead. Kinda sucks, I just use Apache now anyway, so I never spent the time to figure out why.

    - Anthony
    "Haseeb" <webcodder@hotmail.com> wrote in message news:3F12F27B.000009.00452@sw032.SOLUTIONSWAVE.COM ...


    Hi all,
    this is a very strange problem. i don't know where i am doing something that is causing this. the problem is that i am working on a web portal entirely in php. i have a few hidden pages. that do the queries to the DB. now when i redirect to any page for query i get this error
    CGI Error
    The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

    strangely when i hit F5 or refresh the page i get redirected to the desired page. i have checked for any whitespaces. there are none. i have checked and double checked this. i am using win2k,IIS, php 4.3.0

    again i have checked all the files for any space left that could be causing problem but i found none.

    i hope i make my self clear.
    Haseeb



    __________________________________________________ __
    IncrediMail - Email has finally evolved - Click Here
    Anthony Guest

  6. #5

    Default Strange Problem



    Hi all,
    this is a very strange problem. i don't know where i am doing something that
    is causing this. the problem is that i am working on a web portal entirely
    in php. i have a few hidden pages. that do the queries to the DB. now when
    i redirect to any page for query i get this error
    CGI Error
    The specified CGI application misbehaved by not returning a complete set of
    HTTP headers. The headers it did return are:

    strangely when i hit F5 or refresh the page i get redirected to the desired
    page. i have checked for any whitespaces. there are none. i have checked and
    double checked this. i am using win2k,IIS, php 4.3.0

    again i have checked all the files for any space left that could be causing
    problem but i found none.

    i hope i make my self clear.
    Haseeb

    Haseeb Guest

  7. #6

    Default Strange Problem

    I am working on Windows 2000 Professional. Due to some reasons, I had to
    re-install it. There is one particular ASP application named Track. The
    problem is I am able to visit only some of the pages in this application
    (using hyperlinks) but am not able to visit the rest of the pages by
    clicking hyperlinks (a user has to login first as 'admin' to get into the
    site). For e.g. there is a page named Maint.asp which has many hyperlinks.
    When I click a link in this page, I am not able to go forward; neither a
    script timeout error (set to 90 seconds) gets generated. The page remains
    static at Maint.asp though the status bar in IE shows that it is proceeding
    ahead. This problem is happening only with the links in Maint.asp but not
    with the links in any other page in this application. What could be the
    problem? Please note that before re-installing Win2K Pro on my system, I
    didn't face any such problems.

    Thanks,

    Arpan


    Arpan Guest

  8. #7

    Default Re: Strange Problem

    you didn't install Norton Antivirus at the same time, did you?

    if script blocking is enabled, that'll screw any ASP script which uses
    FileSystemObject






    ________________________________________
    Atrax. MVP, IIS
    [url]http://rtfm.atrax.co.uk/[/url]

    newsflash : Atrax.Richedit 1.0 now released.
    [url]http://rtfm.atrax.co.uk/infinitemonkeys/components/Atrax.RichEdit/[/url]

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Atrax Guest

  9. #8

    Default Strange problem

    When I go into the Design mode occasionally I get an error on line ?. And
    there is no error and can't find it. I create a new mxml file and copy all the
    stuff from the old file and most of times it works. What is this problem?

    Thanks

    thephantom6969 Guest

  10. #9

    Default Re: Strange problem

    most likely a bug
    mab_bond Guest

  11. #10

    Default Re: Strange problem

    I have had this bug three or four times. Unload and reload Flex Builder.
    jylaxx Guest

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