Re: Re[2]: [PHP-GTK] how to connect to oracle
| From: | Michael Dransfield | Date: | Tue, 02 Apr 2002 12:25:14 +0000 |
| Subject: | Re: Re[2]: [PHP-GTK] how to connect to oracle | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1699@lists.php.net to get a copy of this message | ||
you need to compile php with oracle support
go and install php properly
there are many comments here
http://uk.php.net/manual/en/ref.oracle.php
if you still cant install it properly - post to the php general or
php-install mailing lists
On Tue, 2002-04-02 at 11:18, ketutg wrote:
> Hello Markus,
>
> Tuesday, April 02, 2002, 5:11:25 PM, you wrote:
>
> MF> On Tue, Apr 02, 2002 at 05:01:48PM +0700, ketutg wrote :
> >> Haloo everone
> >>
> >>
> >> how i can connect to oracle with php-gtk ???
>
> MF> ocilogon() and friends, see http://php.net/oci8
>
>
> why myscript error, message like this
>
> "call to undefined
> function : ocilogon()"
>
>
> putenv('ORACLE_SID=Daidata');
> putenv('ORACLE_HOME=c:\oracle\ora8');
> putenv('TNS_ADMIN=c:\oracle\ora8\net80\admin');
> $connection = oCILogon("daisystem","rujak","dai")
> or die("Couldn't logon to database.");
> $sql = "SELECT customer_name FROM customers" ;
> $sql_statement = OCIParse($connection,$sql)
> or die("Couldn't parse statement.");
> OCIExecute($sql_statement)
> or die("Couldn't execute statement.");
> $num_columns = OCINumCols($sql_statement);
>
>
> --
> Best regards,
> ketutg mailto:ketutg@yahoo.com
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php