0

I have created a PHP project and I am trying to host it online. To do so, I tried linking my database, which is in local phpmyadmin to heroku server. According to this post How to access remote server with local phpMyAdmin client?, I learned that phpmyadmin can be linked to online remote server by adding a piece of code at the end of config.inc.php file. But I do not know how to get information such as hostname, port and username from my herokuapp. Please help me out here. How to get information such as hostname, port and username from herokuapp?

1 Answers1

0

Typically the hostname would be taken from InetAddress From the standard java library

(.getCanonicalHostName (java.net.InetAddress/getLocalHost))

Your web server will be assigned a dynamic port by Heroku but to ACCESS it, you will need to use the default port (80).

As for the user, you would have set that along with password.

Good luck.

  • Currently I am developing a PHP project and I am new to programming. My plan is to host my PHP project online by using Heroku server. May I know what do you mean by java library? – ShenLoong Sky Nov 07 '20 at 17:27