I've included the mysql2i.class.php at the top level page like this:
$db = mysql_connect("localhost", "user", "blabla") or die(mysql_error());
mysql_select_db("gestion", $db) or die(mysql_error());
when I load the page I get a blank page and firebug give me the following error
Dave Smith - 2015-10-30 02:17:09 - In reply to message 1 from Claude Gélinas
That is the problem with 500 errors, they don't tell you anything. If you have access to the error logs, they may shed a little more light on the problem. If you can't get the logs, then it will have to be debugged.
I see in your example that the include is commented out, I assume that you did this to get the page loading and not that you no longer have the old mysql extension... correct?
I am also assuming that you are running at least PHP5?
If those aren't the problem and you need help debugging, just shoot me an e-mail to dave at wagontader dot com and I can help. If I haven't responded within 24 hours, then the e-mail probably went into my spam filter, just let me know here that you sent it.
Claude Gélinas - 2015-11-02 01:37:47 - In reply to message 2 from Dave Smith
Thank you for reply, the line is comented out because the page is not loading if I don't comment it out. I'm still using the mysql extention as I will have to change over then 5000 files to switch to the mysqli extention. That's why your class is soooo important to me.
My PHP version is :
PHP 5.3.8 (cli) (built: Sep 28 2011 17:34:42)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
The mysql2i.func.php is in the same location that the class.
example.php mysql2i.class.php mysql2i.func.php
The Classe directory is at the following location:
Dave Smith - 2015-11-02 02:09:49 - In reply to message 6 from Claude Gélinas
Glad you found it, would have been so much easier if you got the php warning about the include instead of the unknown server error.
Keep in mind that the class is designed to take over when it detects that the old mysql extension is no longer present, until then the old myslq extension is still used, otherwise we would have name collisions with the functions.