Angelo's Corner

PHP and Oracle

November 20, 2009

PHP and Oracle - server side language and database management

 

First and foremost..

I just want to share this… which I actually used …

Assuming we’ve already installed the Oracle in our OS..

1. Download this AppServ

2. Edit the php.ini and then uncomment the ff:

extension=php_oci8.dll extension=php_oracle.dll and by this one..

we can already connect..

Connecting PHP and Oracle

 //some codes here

global $conn;

$user = “username”;

$password = “password”;

$db=”database”;

$conn = oci_connect($user, $password, $db);

if (!$conn) {       

    $err = oci_error();       

    echo htmlentities($err[’message’]);       

exit; }

//some codes here

 

So that’s it..

Posted by angelohere at 9:45 am | permalink | Add comment

PHP and Oracle

October 24, 2009

PHP and Oracle
- server side language and database management

First and foremost..

I just want to share this…
which I actually used …

Assuming we’ve already installed the Oracle in our OS..

1. Download this

http://www.4shared.com/file/141829442/8753236e/appserv-win32-244a.html

2. Edit the php.ini and then uncomment the ff:
extension=php_oci8.dll
extension=php_oracle.dll

and by this one..we can already connect..

<span style=”font-weight:bold;”>Connecting PHP and Oracle</span>

<?php
global $conn;
$user = “username”;
$password = “password”;
$db=”database”;
$conn = oci_connect($user, $password, $db);
if (!$conn) {
  $err = oci_error();
  echo htmlentities($err[’message’]);
  exit;
}
?>

So that’s it..

Posted by angelohere at 9:10 am | permalink | Add comment

     

September 2010
M T W T F S S
« May    
 12345
6789101112
13141516171819
20212223242526
27282930  

About Me

I am Angelo F. Matildo, my nickname is ngel. Currently, I am a systems developer in a company. This blog is primarily for me to post my researches,my some learnings,sharing and some random ideas. Most likely I'm not going to be commenting on things happening... As such it will most likely not be updated very often...

Message Board

mia:

hello mahal ko… congratulations!

yance_angelo::

yance pg.leave ug message dri yance..
mwahmwahmwah

angelohere:

asa ka pa?

angelo:

hello..

support:

Congratulations, you’ve just completed the installation of this shoutbox.

support:

Hi! Your shoutbox is working fine!

Leave a message ▼

Sponsored Links

Recent Photo

Strange Google Maps

Subscribe

Technorati
Bloglines