Skip to main content
Participant
December 1, 2020
Question

Dreamweaver could not securely connect to your server [Branched]

  • December 1, 2020
  • 2 replies
  • 171 views

[Moderator branched & moved to a new topic.]

 

Did you ever get this fixed?

This topic has been closed for replies.

2 replies

Nancy OShea
Community Expert
Community Expert
December 1, 2020

Just because a domain has SSL/TLS certificates, does NOT mean the certificates extend to your server's backend.

You would need to consult your hosting provider about that.

 

Old fashioned MySQL connections WON'T work with server's running PHP 7 or higher.  On modern servers, you need modern code written in MySQLi (improved) or PDO. 

 

Below is an example of MySQLi.  Change values in red to your own.  SaveAs test.php and upload to your remote server.  Test it by going to test.php from your browser.

 

<?php
$con = mysqli_connect("localhost","your_username","your_password","database_name");

// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
else echo "Successfully connected, happy coding!"
?>

<?php phpinfo() ?>

 

Nancy O'Shea— Product User & Community Expert
Community Expert
December 1, 2020

@Renee Pettit - As this post is over a decade old, if you are having an issue, I would recommend starting a new thread.