NOTE: The database connection to remote servers is not allowed by the Website Pro services. In some cases where you require the details please follow the below steps:
- Connect to the website FTP service to be able to upload the printout file
- Once you are connected to the File system, upload the PHP database printout file
- Use the code below with the PHP file uploaded
<?php
echo "Database Host: " . DB_HOST . "</br>";
echo "Database Name: " . DB_NAME . "</br>";
echo "Database User: " . DB_USER . "</br>";
echo "Database Password: " . DB_PASSWORD . "</br>"; ?>
4. Execute the file using the domain or the temporary domain on the site
-
- Example: http://websiteurl.com/filename.php
- Example: http://websiteurl.com/filename.php
The output on the page executed would have all the necessary details for the database connection.