Hi... Now i have OWL working with SQL Server.
The complete Steps to get this are:
1. Update the ntwdblib that php haves for the newest version 200.80.194.0. Because the original DLL from PHP don`t works with sql server.
2-Copy .Dll files that are in the root folder of your php installation that do not begin by php5 *.* to c: \ windows \ system32, this is the list (almost for the version 5.2.8):
* aspell-15.dll
* fdftk.dll
* gds32.dll
* libeay32.dll
* libmcrypt.dll
* libmhash.dll
* libmysql.dll (If u copy this u can work with MySQL and MySQLi without problems)
* libpq.dll (This is for PostgreSQL, but don“t work with copy only)
* ssleay32.dll
Restart web server.
3-Go to your php.ini file and uncomment the php_mssql.dll line (quit the ;).
Restar web server again.
Now u have php_mssql.dll up and working....
4-Run the SQL scripts that I provided (there are wroking over SQL SERVER 2005/2008).
If u use English SQL Environmet, u have to change date to 000-00-00 on the scripts.
5-Go to your owl.php and turn display errors on
6-Go to config/owl.php, uncomment line require_once("$default->owl_fs_root/phplib/db_mysql.inc");
Add the following: require_once("$default->owl_fs_root/phplib/db_mssql.inc");
7-Go to phplib/db_mssql, add at the end of file before the last } the following code:
function now($datestring = "")
{
if (!empty($datestring))
{
$sysdate = "'$datestring'";
}
else
{
$sysdate = "'" . date("Y-m-d H:i:s") . "'";
}
return $sysdate;
}
You might need to adjust Y-m-d H:i:s to accommodate the data format that MS Sql expects as a date inside if INSERT Statements.
8-Go to phplib/db_mssql, add at the end of file before the last } the following code:
function insert_id($tablename = "", $fieldname ="") {
$id = false;
$res = mssql_query('SELECT @@identity AS id');
if ($row = mssql_fetch_row($res)) {
$id = trim($row[0]);
}
mssql_free_result($res);
return $id;
}
9-Delete the content of the active_sessions table
10-Go to owl.php and set active_session_ip = false;
11-Set the parameters to connect to the MSSQL BD in Config/Owl.php
12-Try to login to OWL, if u get an error that the admin account is disable. Then go to user table and add a new user with the same parameter of admin account.
13-Login to owl.
Note: If u forget to do step 8 then u get an error when try to make a new folder.
Now im working on a page that allows to set the BD parameters directly from Web Explores.
Thanks for all your colaboration!!!
File Attachment: File Name:
OWLSQL.zipFile Size: 126994