cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with PHP and SQL Anywhere Connectivity

Former Member
0 Likes
456

Hi,


We are trying connect sqlanywhere-16 to PHP 5.4.12 on both IIS and Apache server.

For that we have done below process as per the documentation provided by SQL Anywhere.

  1. We have set the "C:\Program Files\SQL Anywhere 16\Bin32" folder path in environment variable.
  2. Copy "php-5.4.12_sqlanywhere.dll" file from above directory into php extension folder.
  3. Set extension_dir path to "ext" folder in php.ini.
  4. Put "extension=php-5.4.12_sqlanywhere.dll" statement in php.ini
  5. Restart All services "Apache/Mysql".

Still we got error "Unable to load dynamic library "C:/PHP/ext/php-5.4.12_sqlanywhere.dll"-%1 is not a valid Win32 application,

That’s why we could not execute the functions of sql Anywhere Connectivity. We have search most of the forums as well as SAP help sites.

So please guide us for the above issue.

View Entire Topic
Former Member
0 Likes

Hi Jeff,

I am getting the same issue as Vishal.

I am running 64bit version of php, and have copied the php-5.4.12 dll's from the Bin32 folder of SQL Anywhere 16 64Bit version into the php\ext folder.

Are you suggesting that th32bit version of php should be used?

Regards