Arvind,
Set up the Net8 listener on your oracle server.
Set up the Net8 client on your www server.
Configure the client on the www server to access the oracle instance
Set your www client (nobody,www) so that it can see/use the client software.
At this point, with ORACLE_SID and ORACLE_HOME environment variables set,
you should be able to connect to your oracle database from php.