简体   繁体   中英

Connecting PHP with Oracle MacOS

I am new to Oracle and PHP. I tried to connect to it multiple times but I am still struggling.

I write the Php Files on TextEdit for MacOS and upload them to the FileManager of a Hosting Service like Dreamhost or Bluehost. I access the DB via the internet at Oracle Database Actions / SQL.

I saw $ora = oci_connect('system', '1234Abcd', '//192.168.178.43/orcl.shared'); in the article below and now that system is the db_username and 1234Abcd the db_password but I don't now the rest of the code.

https://marc.vos.net/howto/oracle-oci8/

And my hosting service confused me even more by saying the items of oci_connect must also include the username and password of the hosting service.

Please help me out: :)

For further details just leave a comment.

Easiest is to subscribe to the oracle alway free oci tier. https://www.oracle.com/cloud/free/ This gives you a good, free working database and a platform to develop on. It also gives you a wealth of documentation that help you step by step to get the bits connected. https://docs.oracle.com/en-us/iaas/developer-tutorials/tutorials/apache-on-oracle-linux/01-summary.htm

If your goal is to learn to install and maintain oracle databases start with creating a vm to install oracle on. When the application part and the db part are both new, start walking, start with free oci (Not saying this is slow btw) learn how it works and if you still want, install php on your Mac. It certainly is possible but OS X has its quirks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM