PHP 5.1.1 Oracle9 connection

Hello,
I have problems with the connection between php and oracle.
Setup i have:
XAMMP(Apache,Myql,PHP)
Windows XP Pro
What i have done:
1.Changded php.ini and uncomment oci8.dll
2.When i clicked op php.exe buch of errors.
3.I overwrite the oci8.dll with ann oci8.dll of php5.1.1 .
4.Extracted instantclient_10_2 on D:\oracle\instantclient_10_2 whit init a bunch of dll's.
5.Edited the PATH to D:\oracle\instantclient_10_2;....
I got no error's anymore but in the phpinfo.php there is NO OCI8 PART.
When i try to connect with my oracle database i get this:
Fatal error: Call to undefined function OCILogon() in D:\Program Files\xampp\htdocs\php\testoracle.php on line 2

Have the same error. Can't figure out what's going on. I have XAMPP installed on Win XP with oracle 9. I used the instantclient solution from this site and installed that in a seerate dir added to the env variables. I assume this is an inconsistancy issue in a dll or something like that but i haven't been able to resolve this yet. Error message:
Warning: oci_connect() [function.oci-connect]: ORA-12705: Cannot access NLS data files or invalid environment specified
oci8 support is enabled. Any suggestions for someone that is not too keen on installing anotehr operating system for this one..?
Cheers

Similar Messages

  • Error when connecting PHP on linux with oracle9i

    the error that presents/displays to me is the following one
    Warning: ocilogon(): ociopen_server: Error while trying to retrieve text for error ORA-12154 in /var/www/html/oci8test.php on line 3
    rethat 2.1 AS, PHP-3.4.3 y apache 1.3.28
    Help

    The oracle error ORA-12154 is a "TNS:could not resolve service name" error. This is what I get when I type oerr ora 12154:
    // *Action:  Make the following checks and correct the error:
    // - Verify that a TNSNAMES.ORA file exists and is in the proper
    // place and accessible. See the operating system specific manual
    // for details on the required name and location.
    // - Check to see that the service name exists in one of the
    // TNSNAMES.ORA files and add it if necessary.
    // - Make sure there are no syntax errors anywhere in the file.
    // Particularly look for unmatched parentheses or stray characters.
    // Any error in a TNSNAMES.ORA file makes it unusable. See
    // Chapter 4 in the SQL*Net V2 Administrator's Guide. If
    // possible, regenerate the configuration files using the Oracle
    // Network Manager.
    Hope this helps.

  • PHP Soap error Could Not connect to host

    Hi all, this is my first time on this forum so I hope I am not doing anything stupid.
    I have a wsdl file in my local server, when I try to access the code I get error could not connect to the host each time. I thought this was my programming mistake until I tested it on my ubuntu and windows server, It seems to be working fine on them. Is there something that I should enable some module or port ( I already have my soap extension loaded in php). Please help me out with this.
    Last edited by rohankoid (2012-04-16 05:05:22)

    Hi,
    Welcome to the    Discussions
    At one time Google(Talk) only offered the service to Google Mail accounts with either @gmail.com or @googlemail.com endings.
    Nowadays they also offer Google IDs that can then be made to work as GoogleTalk IDs.
    These are the iChat 3 instructions http://www.google.com/support/talk/bin/answer.py?answer=24076 with pics.
    In iChat 3 there was no GoogleTalk option and was added as Jabber ID and then you had to change the Server name (it presumed that it was either gmail.com as Defcom shows or googlemail.com) by taking the end of your Google Mail ID and puling it though to the Server Name box.
    In iChat 4 and 5 there is a Google ID option and this will set the Server as talk.google.com as you list.
    Google allows Port 443 to be used and the gmail.com as server name
    My Current Settings
    NOTES.
    Based on the Google Instructions your Name in iChat must match the ID you see when you login in to the Google Mail page (Or web site).
    The Mail App seems to cope with either and grab your mail for download but iChat prefers that you use the one as Listed.
    Also on your Google Account have you enabled TALK ?
    You need to do this first.
    8:24 PM Tuesday; March 16, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Linux oracle9i connectivity using Pro C/C++

    Hi,
    Can anyone plz help me out in connecting C++ with oracle9i under Linux(Red hat linux)??? A code snippet would be appreciated.. Thanks in advance..
    Ranjith

    My answer is only for 1. problem (about ORA-01458)
    I think that you use declaration for cursor C0 with a varchar
    variable before you ininitialize length (member .len of varchar
    structure) of this variable.
    It's famous that many errors come from uninitialized varchar
    variables in Pro*C.

  • Error with PHP (can't resolve the connect identifier)

    Hello everybody,
    I have an issue that I hope you can help me with.
    I installed on an OpenSuse the following applications using the guides I found on this web site:
    - Apache 2 HTTP Server
    - PHP 5.2.9
    - Instantclient 11.1
    - Oracle 11g
    After hours of hard work and web navigation looking for information about the problems I got, I'm stucked and I don't find a way to continue.
    When PHP tries to connect to the Database, I get this message:
    Warning: oci_connect() [function.oci-connect]: ORA-12154: TNS:could not resolve the connect identifier specified in [...]
    ORA-12154: TNS:could not resolve the connect identifier specifiedtnsping from a terminal resolves the name successfully, as you can see:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.4.201)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Blog.coremain.com)))
    OK (0 msec)The problem comes when PHP tries to connect, that's where Oracle doesn't resolve the SID.
    Environment variables ($ORACLE_HOME, $ORACLE_SID, $LD_LIBRARY_PATH) are set as guides say.
    By the way, maybe it's related: I can't either connect with JDeveloper to this database in other PC from the network. The data is correct (user, password, IP, port, SID/Service Name).
    This happens with a Linux O.S. Installing the same stuff on a Windows, PHP and JDeveloper work fine.
    Can you help me, please? I read all the info on the Internet I could get and can't find the solution.
    Tell me if you need me to show you any log or configuration file.
    Regards

    Hi there,
    I agree, I think it's an environment issue, but I don't know how to set it up. Here is the environment section of phpinfo():
    Apache Environment
    Variable     Value
    HTTP_HOST      127.0.0.1
    HTTP_USER_AGENT      Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.9.0.8) Gecko/2009032600 SUSE/3.0.8-1.1.1 Firefox/3.0.8
    HTTP_ACCEPT      text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    HTTP_ACCEPT_LANGUAGE      es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
    HTTP_ACCEPT_ENCODING      gzip,deflate
    HTTP_ACCEPT_CHARSET      ISO-8859-1,utf-8;q=0.7,*;q=0.7
    HTTP_KEEP_ALIVE      300
    HTTP_CONNECTION      keep-alive
    HTTP_REFERER      http://127.0.0.1/
    PATH      /usr/sbin:/bin:/usr/bin:/sbin
    SERVER_SIGNATURE      no value
    SERVER_SOFTWARE      Apache/2.2.11 (Unix) PHP/5.2.9
    SERVER_NAME      127.0.0.1
    SERVER_ADDR      127.0.0.1
    SERVER_PORT      80
    REMOTE_ADDR      127.0.0.1
    DOCUMENT_ROOT      /usr/local/apache2/htdocs
    SERVER_ADMIN      [email protected]
    SCRIPT_FILENAME      /usr/local/apache2/htdocs/index.php
    REMOTE_PORT      61677
    GATEWAY_INTERFACE      CGI/1.1
    SERVER_PROTOCOL      HTTP/1.1
    REQUEST_METHOD      GET
    QUERY_STRING      no value
    REQUEST_URI      /index.php
    SCRIPT_NAME      /index.php By the way, I can tnsping only with oracle and root user, with sergio.solis user can't do it: "TNS-03505: Failed to resolve name".
    Thanks for your answer.
    Regards.

  • Oracle9i connect sybase use ODBC

    hi,everyone
    i configure a hsodbc to non-oracle(sqlserver7) database, under win2k platform, it works fine. now i configure it under Solaris platform to Sybase, i download a DataDirect ODBC driver for Sybase. when i create a database link in sqlplus, i select some data from sybase, it work error,error message is:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][C077] Could not find symbol 'SQLAllocConnect'
    in dynamic library
    [C079] Failed to load dynamic library '/opt/odbc/lib/libodbc.so'
    i use command elfdump look for SQLAllocConnect symbol, it include in libodbc.so.
    my oracle is 9.2.0, anyone know why it run error?

    yes, i add the env LD_LIBRARY_PATH in the listener.ora file, but it still work error. the SQLAllocConnect function entry is in the libodbc.so file. generally application using ODBC will call the SQLAllocEnv first, if invokation successful, then invoke the SQLAllocConnect function. i specify HS_FDS_SHAREABLE_NAME = /opt/odbc/lib/libodbc.so in the inithsodbc.ora file, sqlplus should be found SQLAllocConnect.
    anyone encounter this situation?

  • 'unable to connect' and  index.php

    Hi. 
    I am developing a Web Site and index.php is my point of entry.
    Document Root     Library/WebServer/Documents
    so my path is:       Library/WebServer/Documents/dwwdSite
    httpd.conf file is modified to add index.php  and have it listed first.
    <IfModule dir_module>
    DirectoryIndex   index.php   index.html
    <IfModule>
    Troubleshooting:
    I was using Netbeans IDE and when I ran index.php it opened in the browser.
    When I launched 'any' of my index.php files from Netbeans IDE, they opened correctly in the brower
    I am NOW using DreamweaverCC and when I run the index.php Error Message ' Unable to Connect'.
    For the last 2 days I have been working on this and I am completely stuck.
    This morning I thought of another way to test the 'unable to connect' error.
    I decided to copy this same file into Netbeans IDE and I NOW get the same Error Message ' Unable to Connect'
    when running index.php from Netbeans.
    Somehow, my settings are not correctly configured anymore.
    Here are my screenshots from Dreamweaver > manage sites.
    I believe that this is a rather simple fix that I am somehow not seeing.
    Maybe some can spot some mistake.
    I appreciate your help and explanation.

    Hi Sudarshan.
    You have been very kind and very clear in your explanation.
    One of the very best that I have ever communicated with on this forum !
    I have checked many, many things.
    I wanted to make certain that I killed apache and restarted it.
    I do not think it is RUNNING at all.
    1.
    myNameMacBookPro:~ myName$ pwd
    /Users/myName
    2.
    myNameMacBookPro:~ myName$ ps -ax | grep http
    1892 ttys000    0:00.00 grep http
    3.
    myNameMacBookPro:  myName$ hostname
    local
    4.
    myNameMacBookPro:etc myName$ cd apache2
    reginaMacBookPro:apache2 myName$ ls
    extra            httpd.conf.pre-update    mime.types        other
    httpd.conf        magic            original        users
    5.
    myNameMacBookPro:apache2 myName$ sudo nano httpd.conf
    myNameMacBookPro:apache2 myName$ sudo apachectl -k restart
    Syntax error on line 1 of /private/etc/apache2/users/myNameBU.conf:
    Invalid command '{\\rtf1\\ansi\\ansicpg1252\\cocoartf1187\\cocoasubrtf370', perhaps misspelled or defined by a module not included in the server configuration
    httpd not running, trying to start
    myNameMacBookPro:apache2 myName$
    6.
    The above code may be a hint at part of the problem.
    I created myNameBU.conf   as a backup when I was editing the file.
    QUESTION.  Why is /private/etc/apache2/users/myNameBU.conf:
    being referenced above ?
    7.
    I scanned my ports from preferences and found these two which I believe are what you stated they should be.
    port 80 is html
    port 8080 is html-alt
    8.
    I have modified this line and tried it both ways restarting apachectl each time.
    AllowOverride None
    AllowOverride All
    9.
    And here is a part of my httpd.conf.
    excerpts.
    httpd.conf
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    User _www
    Group _www
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/Library/WebServer/Documents"
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # features.
    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>
    10.
    I took a look at this too.
    usr/bin
    #path to httpd binary including options if necessary
    HTTPD = "usr/sgin/httpd"
    # pick up any environmental variables if test - f /usr/sbin/envvars; then ./usr/sbin/envvars
    fi
    STATUSURL = "http://localhost:80/server-status
    11.
    Just a reminder.
    I started writing .php scripts with Netbeans IDE.
    The programs ran:  I got output in the brower.  Things worked just fine !
    I started writing .php scripts with DreamweaverCC.
    The programs NEVER ran.
    I have always gotten 'Unable to Connect"
    Firefox/Safari can't establish a connection to the server at localhost.'
    12.
    QUESTION.
    At one point I was on the phone with a member of the Adobe Technical Support Team.
    They connect to my desktop (only) remotely.  I am very cautious about this.
    Could something have been inadvertently changed when they did this ?
    They do need to connect through a PORT - yes ?
    This is very frustrating and I am loosing days of work.
    I want to get back to Web Development
    I love Adobe products but this should not be such a huge obstacle.
    When I called Technical support (after much troubleshooting individually and on this forum)
    the fellow told me that the ONLY support FTP - not LOCALHOST.
    This makes no sense.  People develop 'locally' then put it ftp it in the production stage.
    Again, I appreciate your assistance.

  • 'unable to connect' and 'localhost' and index.php and dreamweaverCC

    Hi. 
    I am developing a Web Site and index.php is my point of entry.
    Document Root Library/WebServer/Documents
    so my path is: Library/WebServer/Documents/dwwdSite
    httpd.conf file is modified to add index.php  and have it listed first.
    <IfModule dir_module>
    DirectoryIndex   index.php   index.html
    <IfModule>
    Troubleshooting:
    I was using Netbeans IDE and when I ran index.php it opened in the browser.
    When I launched 'any' of my index.php files from Netbeans IDE, they opened correctly in the brower
    I am now using DreamweaverCC and when I run the index.php Error Message ' Unable to Connect'.
    For the last 2 days I have been working on this and I am completely stuck.
    This morning I thought of another way to test the 'unable to connect' error.
    I decided to copy this same file into Netbeans IDE and I NOW get the same Error Message ' Unable to Connect'
    when running index.php from Netbeans.
    Somehow, my settings are not correctly configured anymore.
    Here are my screenshots from Dreamweaver > manage sites.
    I believe that this is a rather simple fix that I am somehow not seeing.
    Maybe some can spot some mistake.
    I appreciate your help and explanation.

    Site window settings.
    Site Name: dwwdSite
    Local site folder: /Library/WebServer/Documents/dwwdSite
    Server window settings.
    Server Name: testing Server
    Address: Macintosh HD/Library/WebServer/Documents/dwwdSite
    Connect using: Local/network
    Testing: yes (checked)
    Server folder: /Library/WebServer/Documents/dwwdSite
    (I also tried this: Server folder: /Library/WebServer/Documents)
    Web URL: http://www.localhost/dwwdSite
    Server Advanced tab: (within server window settings)
    Testing server: PHP MySQL
    Advanced Settings window.
    Local info: Web URL: http://www.localhost/dwwdSite
    Enable cache: yes (checked)

  • Recordsets disappear from menu when adding mysql_query ("SET NAMES 'utf8'"); below the connection in php

    I hope someone can help with this. I'm trying to create a
    dynamic site using dreamweaver CS3, with php5 and mysql5 in the
    background but I'm having difficulty with recordsets disappearing
    from the server behaviour menu when tweaking the code to allow set
    characters or set names for utf8.
    For a while, I've been having a problem getting my
    dynamically generated master list pages (eg lists of jobs) to
    display international characters like an accented french e (and
    other languages) and for these to display correctly when viewed in
    phpmyadmin also. So, I've placed headers at the top of the page for
    utf8 and created the content metatag for utf8 in the page code.
    Where needed I've added ENT_QUOTES utf etc for htmlentities and
    added accept-charset utf-8 in the <form> action area.
    (one thing I haven't done in the form action area is add
    <enctype="multipart/form-data">, but I'm not sure if this
    will make any difference)
    In the backend, the innoDB database is collated and built
    using utf8_unicode_ci. I'm on a shared host -so can't directly
    access php.ini or adjust the connection settings through
    phpmyadmin. But I can write .htaccess files (currently with the
    defaultcharset set to utf8 also).
    At this point - all list pages display the correct characters
    when retrieved from the database - indicating that the headers are
    working. But - in phpmyadmin the letters are garbled, and garbled
    on return on update forms (content management). I solved this by
    adding the &#xxxx; equivalents in insert and update forms to
    display the text correctly on the list pages - but again it's not
    convenient to see all of this in phpmyadmin, as I'd like to be able
    to read it there as it should be, and to dispense with the need to
    add &#xxxx references on the insert and update forms.
    So...a bit of searching, and I read that in order for the
    international characters to display in phpmyadmin correctly, I
    needed to amend my php page code so that for all instances where I
    see the connection to the database, before the SELECT, INSERT and
    DELETE queries, I need to add either mysql_set_charset('utf8',
    $connection) or use three lines of code referencing mysql_query SET
    NAMES, SET CHARACTER SET and SET COLLATION_CONNECTION for utf8.
    I did that, and it removed all of my recordsets in the
    sidebar menu! Not too good. I'm left with a task of rebuilding
    pages now.
    So I placed the mysql_set_charset line in the connection.php
    file in the DW Connections folder below the connection there
    instead. [I didn't precede the mysql etc line with a $ sign - I
    wonder if that's the issue?]
    With this change I could use the Insert forms to add the
    international characters directly into the database and see through
    phpmyadmin that all was hunky dory. But then the problems came with
    first loads of the master list page.
    So, I can get international characters into the database now
    (which is a step in the right direction for me), using an insert
    form on the website, but I still can't get the international
    characters to display on the returned page on first loading eg on a
    list of jobs. Note that the detail pages display fine when clicking
    the master links, and when I return from the detail page back to
    the master list - the characters are ok. They just don't seem to
    display when the master page loads for the first time which is
    really perplexing me.
    I suspect that I need to add the mysql_set_charset line below
    the $connection and before the selects, inserts etc at all
    instances on the webpage, but this just removes the recordset from
    the menu, so this doesn't seem to be a good option.
    Can anyone point me in the right direction as I'm been stuck
    on this for ages. It may be something simple like adding $ in front
    of the mysql_query, but then again maybe not.
    I've tried other forums - but people seem to be content with
    viewing but not offering assistance. I don't believe that what I'm
    doing here hasn't been done before....all I want is for my pages to
    display international characters and for these to display correctly
    in phpmyadmin so that when I insert, update and delete records
    using webforms I don't have to resort to using &#xxx inserts.
    Help please!

    .oO(08Green)
    > So...a bit of searching, and I read that in order for
    the international
    >characters to display in phpmyadmin correctly, I needed
    to amend my php page
    >code so that for all instances where I see the connection
    to the database,
    >before the SELECT, INSERT and DELETE queries, I need to
    add either
    >mysql_set_charset('utf8', $connection) or use three lines
    of code referencing
    >mysql_query SET NAMES, SET CHARACTER SET and SET
    COLLATION_CONNECTION for utf8.
    Usually you only need to send a SET NAMES 'utf8' right after
    the
    connection to the DB has been established. That way all data
    that is
    transferred between the DB and your script will be handled as
    UTF-8.
    > I did that, and it removed all of my recordsets in the
    sidebar menu! Not too
    >good. I'm left with a task of rebuilding pages now.
    >
    > So I placed the mysql_set_charset line in the
    connection.php file in the DW
    >Connections folder below the connection there instead. [I
    didn't precede the
    >mysql etc line with a $ sign - I wonder if that's the
    issue?]
    I've never used mysql_set_charset().
    Here in my applications it always works like this:
    * the default charset in my InnoDB tables is ISO-8859-1, I
    only use
    UTF-8 in the columns that really need it (text data, but not
    INT or
    DATE columns)
    * SET NAMES 'utf8' at the beginning
    * all files (HTML and PHP) are encoded as UTF-8 without BOM
    * all pages delivered as UTF-8 (my pages are
    script-generated, so I use
    an appropriate header() call to define the content-type and
    encoding)
    That's it. Oh, and I don't use phpMyAdmin ...
    > With this change I could use the Insert forms to add the
    international
    >characters directly into the database and see through
    phpmyadmin that all was
    >hunky dory. But then the problems came with first loads
    of the master list
    >page.
    In the first part of your posting it sounded as if it worked
    almost
    correctly, before you tried to fix the broken phpMyAdmin
    appearance.
    Is that correct?
    > So, I can get international characters into the database
    now (which is a step
    >in the right direction for me), using an insert form on
    the website, but I
    >still can't get the international characters to display
    on the returned page on
    >first loading eg on a list of jobs.
    They did display correctly first, didn't they? So it seems
    that you
    broke your script just in order to fix some PMA problem.
    Revert that.
    Make your script work for normal input/output from/to a
    website first
    and don't worry about PMA for now.
    What do you need PMA for BTW? It may have many other issues
    as well and
    should only be used if really necessary or if you're not
    familiar with
    the command line interface. The only thing that we are using
    it is to
    get a dump from a remote DB, where I don't have shell access
    to call
    mysqldump directly (yes, I could also write a little PHP
    script for
    that, it's already somewhere on my TODO). But here on my
    local system I
    always use the MySQL command prompt if I have to directly
    work on some
    tables or to import the dump from remote.
    Anyway, if you need PMA, your might try their group or forum.
    I'm sure
    there's an FAQ as well. Maybe it's just a configuration
    issue.
    > I've tried other forums - but people seem to be content
    with viewing but not
    >offering assistance. I don't believe that what I'm doing
    here hasn't been done
    >before....all I want is for my pages to display
    international characters and
    >for these to display correctly in phpmyadmin so that when
    I insert, update and
    >delete records using webforms I don't have to resort to
    using &#xxx inserts.
    The bug here is PMA itself. ;-)
    Micha

  • MSSQL connection with PHP in DW

    Hello,
    I know that DW 8 has a built-in connection when using php
    with a mysql database.
    However, I would like to connect to a remote Microsoft SQL
    Server with DW and php.
    Is there a way to make this connection ? Probably not
    built-in but maybe through any other way ? I have full access to
    the SQL Server.
    Thanks in advance for your help.
    Marion

    MarionKi wrote:
    > Hello,
    > I know that DW 8 has a built-in connection when using
    php with a mysql
    > database.
    > However, I would like to connect to a remote Microsoft
    SQL Server with DW and
    > php.
    > Is there a way to make this connection ? Probably not
    built-in but maybe
    > through any other way ? I have full access to the SQL
    Server.
    All the server behaviors in Dreamweaver are MySQL specific,
    so even if
    you make a connection, none of the DW code will work.
    PHP 5 introduced PDO (PHP Data Objects), which allow
    connection to any
    database (providing the appropriate drivers are installed on
    the
    server). However, DW doesn't yet support PDO.
    You will need to hand-code everything yourself.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • PHP & ORACLE Connectivity on Solaris

    Hi all,
    You can check this site for PHP and Oracle connection tutorial. It is intended to installing Apache and PHP with Oracle support and connecting and using Oracle via PHP.
    Page URL :
    http://gokmen.selcuk.edu.tr/tutor/orasol/ociphp.php
    Additionally, You will see an alternative way escaping from ORA-12154 and ORA-12545 errors while Oracle connection via PHP.
    Hope you find useful...
    Mustafa GOKMEN

    Hello,
    My developers have changed all the API´s to OCI8 and the code is able to connect with oracle 10g with php4 but, i am still getting this warning .i.e
    Warning: ocifreestatement(): supplied argument is not a valid OCI8-Statement resource in /apache/htdocs/English/tender_list.php on line 340
    i am unable to figure it out, every thing is working fine but still i am getting it ?
    thanks

  • PHP/mySQL data connection

    Hi,
    I've used DW CS3 to create a database connection to a mySQL
    database that I created in phpMyAdmin. When I do the setup and test
    all the connections, everything works - my table comes up, I'm able
    to select it. I created a recordset to display what's in the
    database. When I test the page, I'm getting this error:
    Warning: mysql_connect() [function.mysql-connect]: Access
    denied for user 'identity_teach'@'localhost' (using password: NO)
    in /home/identity/public_html/Connections/facultyDB.php on line 7
    Cannot connect to the database because: Access denied for
    user 'identity_teach'@'localhost' (using password: NO)
    The password info is in there - and I know it's right,
    because DW tests the connection and gives me a success message. Any
    ideas why I would be getting this error?
    Thanks!
    Carrie

    >in /home/identity/public_html/Connections/facultyDB.php
    on line 7
    Check your path in your code on line 7
    I had this same problem and it showed something like this
    (assuming you are using PHP)
    <?php virtual (/Connections/connbay.php'); ?>
    i changed to
    <?php require_once('../Connections/connbay.php'); ?>
    and it worked fine

  • How to write ASP code to connect to Oracle9i (Release 1)?

    I am experiencing a problem when writing a program using ASP and Oracle9i (Release 1). I know the connection string when working with Access. However, the oracle9i connection string makes me headache.
    A lot of thanks!

    Hi,
    Need few information about your system setup:
    1. Which data provider are you using to connect ASP to Oracle9i?
    2. Write the connect string you are using. Write the error message you get while establishing the connection.
    Also try the following connect strings
    1. Connection using Oracle Data Provider for .NET (ODP.NET)
    In the postback method of your .aspx.cs file call this method.
    a)//include these namespaces
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    b) //Declare
    OracleConnection conn ;
    c) //Write this method
         private Boolean getDBConnection()
              try
                   //Connection Information     
                        string connectionString =
                             //username
                             "User Id=scott"
                             //password
                             ";Password=tiger"
                             //replace with your datasource value (TNSnames)
                             ";Data Source=ora9idb;"
                        //Connection to datasource, using connection parameters given above
                        conn = new OracleConnection(connectionString);
                        //Open database connection
                        conn.Open();
                        return true;
                   // catch exception when error in connecting to database occurs
                   catch (Exception ex)
                        //Display error message
                        return false;               }
    2.
    In case you are using Oracle Provider for OLEDB
    use the following connect string
         string ConnectionString =
                             //Oracle OleDB .Net Data provider
                             "Provider=OraOLEDB.Oracle" +
                             //username
                             ";User Id=scott"
                             //password
                             ";Password=tiger"
                             //replace with your datasource value (TNSNames)
                             ";Data Source=ora9idb"
                             //using OLEDB .Net Data Provider features
                             ";OLEDB.NET=true" ;
    Let me know if you are unable to establish the connection, after trying the preceding connect strings.
    Hope that helps.
    regards
    OTNTeam@IDC

  • PHP Connection fails, but works over saprfc_test.php

    Hi,
    I can make a connection to SAP using saprfc_test.php but when I try and do this with my php script at the command line it fails with this error:
    C:\Documents and Settings\arundelr>php -c C:\www_root\Apache2.2\php.ini C:\www_r
    oot\htdocs\newphpsaprfc\parser.php
    Order Number: 0000427138
    PHP Warning:  RFC Error Info :
    Group    : 102
    Key      : RFC_ERROR_COMMUNICATION
    Message  : Connect to message server failed
    Connect_PM  MSHOST=sapdev.host.com, R3NAME=FRD, GROUP=PUBLIC
    LOCATION    CPIC (TCP/IP) on local host
    ERROR       Group PUBLIC not found
    TIME        Mon Jul 09 17:28:30 2007
    RELEASE     640
    COMPONENT   LG
    VERSION     5
    RC          -6
    I do not specify a group when I use saprfc_test.php but I notice this is reporting it as PUBLIC.  Does anybody have any bright ideas?
    cheers
    Rob.
    MODULE      lgxx.c
    LINE        3531
    DETAIL      LgIGroup
    COUNTER     1
    in C:\www_root\htdocs\newphpsaprfc\includes\processor.php on line 15
    RFC connection failed
    C:\Documents and Settings\arundelr>

    specifying "MSHOST"=>"", did the trick.

  • How to connect my Nokia 5230 to internet using Blu...

    I would like to be able to connect my mobile (Nokia 5230) to internet without using the GPRS connection.
    The only option I can see, is to connect my mobile to my PC (which has an internet connection) via bluetooth or USB and share the pc internet connection with my mobile.
    How can I do that?
    I would like to use OVI store but the only option is "Send to Mobile" It seems that it is not possible to download a file on the PC and then send it to the mobile . If I coudl share my PC internet connection with my mobile I will be in a position where I could use OVI store
    I found this post at,
    http://discussion.forum.nokia.com/forum/showthread.php?206301-How-to-connect-my-Nokia-5230-to-intern...
    While trying to find an answer to this.
    Sajit

    What you're asking is not possible. There was a piece of software called GNUBox that might have done the trick but it seems to be more or less abandoned.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

Maybe you are looking for

  • Error in Starting Oracle BAM Active Data Cache

    I am not able to start "Oracle BAM Active Data Cache" on my machine. The other two components "Oracle BAM Event Engine" and "Oracle BAM Report Cache" are starting properly. When I see the event log file of my Computer I could see the details as below

  • Screen sharing to OS X Lion Server with non-admin account

    I have set up a Lion Server with one admin (in addition to the root user) and several non-admin normal accounts. In Server.app, I have enabled remote login with ssh, and remote management via screen sharing.  I am unable to use Screen Sharing to conn

  • CS4 js error on file save -- but only when run via droplet

    I have a js script that I've been using fine in PS CS. I've now upgraded to CS4 and trying to get it working. After a couple of minor tweaks, the script works fine when invoked directly from within CS4 (in an action step). But when I create a droplet

  • LOV Problem - Top Urgent !!!!!

    A table contains of 4 composite primary fields, one of the primary field is a date field. A record group created at design time with the help of above table. This record group is used for LOV, hence in record group query, the select statement has all

  • ERROR 'undefined' is not an object. CK.Application

    Hello all,       I keep getting the following message whenever I click the 'find my iphone app. ERROR 'undefined' is not an object. The calling function is CK.Application#_applicationShouldInvokeMain FILE Unknown I am using a blackberry playbook, how