Not the answer you need?
Register and ask your own question!

Install dynamic libraries in php

ervaneet82ervaneet82 ContributorCurrent User Role Advisor
Hi all,

I have checksum.so file. It is not the come with package actually it is made by somebody in "C" language. I want to run in php. I have added in /usr/lib64/php/modules , and /etc/php.ini extension=checksum.so. But unable to load the dynamic library.

I have php-5.3.1, how can I install the dynamic library. Can anybody help me out?

-Vaneet Gupta

Comments

  • xaprbxaprb Mentor Inactive User Role Leader
    I would start by examining error logs.
  • ervaneet82ervaneet82 Contributor Current User Role Advisor
    Thanks, I have resolved the issue. Actually I have to put the .so file in the directory where I was running my application. Make the c program and compile it with "gcc -rdynamic -o prog3 prog3.c -dl" , it creats the execute file with name prog3 . Then call it in the php with the help of "exec" in php.

    -Vaneet Gupta
    Linux Administrator
Sign In or Register to comment.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.