PHP connects to a MS SQL database on Everleap through the sqlsrv extension, which is enabled on the platform. You do not need to install anything; you supply the four connection values and call sqlsrv_connect.
sqlsrv
sqlsrv_connect
PHP is not enabled by default. See How to enable PHP.
The password is the one set for that database user, not your Control Panel password.
<?php $serverName = "Enter Host Name"; $uid = "Enter Username"; $pwd = "Enter Password for SQL User"; $databaseName = "Enter name of the Database"; $connectionInfo = array( "UID"=>$uid, "PWD"=>$pwd, "Database"=>$databaseName); /* Connect using SQL Server Authentication. */ $conn = sqlsrv_connect( $serverName, $connectionInfo); if( $conn ) { echo "Connection established.<br />"; }else{ echo "Connection could not be established.<br />"; die( print_r( sqlsrv_errors(), true)); } ?>
Fill in the four values as follows:
$serverName
$uid
$pwd
$databaseName
Upload the page and open it in a browser. "Connection established." means the four values are correct. "Connection could not be established." is followed by the full error array from sqlsrv_errors(), which will name whichever value is wrong.
sqlsrv_errors()
A blank page usually means PHP errors are not being displayed rather than that nothing happened. See PHP error logging for where the errors are written.
Delete or protect the test script once you are finished. It contains a working database user name and password in plain text.
Trouble logging in? Simply enter your email address OR username in order to reset your password.
For faster and more reliable delivery, add support@everleap.com to your trusted senders list in your email software.
A code was sent to the recovery email address. Please provide the 6-digit code.
A code can be retrieved from your authentication app. Please provide the 6-digit code.
An email was sent to your recovery email address. If you need further assistance, please contact your system admin.