Currently I m requesting by my manager that to configure PHP works with SQL anywhere 10. But, after i try to configure it. I get tis error msg-->
PHP Warning: PHP Startup: sqlanywhere: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0 PHP Fatal error: Call to undefined function sqlanywhere_connect() in C:\Program Files\SQL Anywhere 10\src\php\examples\connect.php on line 2
I am wondering what this error means and how to solve this?
Here are the steps that I configure PHP and SQL anywhere 10.
1. I installed PHP 5.3.2 without any extension.
2. I copy php-5.1.2_sqlanywhere10.dll this file from SQL anywhere 10 and paste into C:\PHP\ext folder.
3. I modified the code in PHP.ini by adding this line
extension=php-5.1.2_sqlanywhere10.dll only.
4. I start my server in the sample database provided by SQL anywhere 10.
5. I run my connect.php in IIS, then it gets these errors.
I know the version of SQL anywhere 10 is not compatible with PHP version. But, I am following the steps provided by this link:
http://www.ianywhere.com/developer/prod ... 87280.html
Here is my code for connect.php
Code: Select all
<?php
$conn = sqlanywhere_connect( "uid=dba;pwd=sql" );
if( ! $conn ) {
echo "Connection failed\n";
} else {
echo "Connected successfully\n";
sqlanywhere_disconnect( $conn );
}
?>