Re: [PHP3] remote DB(sybase) connection question
| From: | Andrej Trobentar | Date: | Mon, 15 May 2000 10:19:06 +0000 |
| Subject: | Re: [PHP3] remote DB(sybase) connection question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59@lists.php.net to get a copy of this message | ||
david.tansley@acelondon.co.uk wrote:
> Hello,
>
> Can you connect to remote DB servers where php is not istalled ?.
> For instance if I had host-A that had apache/php installed, could I then
> using the connection (php functions) connect to host-B that has
> say Sybase running on it ?.
> WOuld I need to install openclient first where php is resident on host-A..
>
> OR do I have to install php/apache where the say Sybase is resident ? and use
> this server as the web server?
> Thanks
> D.T.
> ________________________________________________________________________
>
> CONFIDENTIALITY This e-mail and any attachments are confidential and may
> also be privileged. If you are not the intended recipient(s) please note
> that any distribution, copying or use of this communication or the
> information in it is strictly prohibited.If you are not the named
> recipient(s), please notify the sender immediately and do not disclose
> the contents to another person, use it for any purpose, or store or
> copy the information in any medium.
>
> > ************
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
Sure you can connect to a remote database. In my case I connect to a remote
Oracle 8i database throu TCP/IP protocol. My connect script looks like this :
"$conn = OCILogon("username", "password",
"name_of_the_host_on_which_the_remote_database_is_installed");"
Hope that helps a little.
AnD.