Page 1 of 1
External .dll file
Posted: Tue Apr 20, 2010 8:23 am
by deshmukh999
Hi,
I need to include .dll file which is not in php/ext folder.
i cant access the any file in php/ext as i dont have proper permission.
Is there any other way to use (include) external .dll file.
can I create a php.ini file and keep in public_html folder,
can I specify the path of this dll in my php.ini file which I kept in public_html folder
Suggest me to get it done.
Thanks
Re: External .dll file
Posted: Tue Apr 20, 2010 5:21 pm
by requinix
Are you on shared hosting?
Re: External .dll file
Posted: Tue Apr 20, 2010 11:30 pm
by deshmukh999
I have cPanle login access.
But as we do in localhost, first inclide such .dll file in php/ext folder,then set the path for that dll in php.ini file.
Here I am not getting how to use that .dll file.
Re: External .dll file
Posted: Wed Apr 21, 2010 12:42 am
by requinix
Are you on shared hosting?
Re: External .dll file
Posted: Wed Apr 21, 2010 2:57 am
by deshmukh999
Its is dedicated hosting.
Re: External .dll file
Posted: Thu Apr 22, 2010 1:02 am
by deshmukh999
Hi Guys,
I already have a dll which is created using C++.
I need to call a function within this dll from php
but where to keep this file and how to call.
I know extension in php can help , but can someone give a detailed explanation?
Can someone help me out...
Re: External .dll file
Posted: Thu Apr 22, 2010 1:38 am
by requinix
Since you're not the server administrator, ask whoever that is for how to do it.
They may ask for it so they can install it themselves.
They may tell you to put it in your home directory and add an extension= line to a per-user php.ini.
They may tell you it's not allowed.
Re: External .dll file
Posted: Thu Apr 22, 2010 3:13 am
by deshmukh999
I am trying to do in localhost, even then its not working.
dl() itself is not defined.
Re: External .dll file
Posted: Sat May 01, 2010 2:05 am
by deshmukh999
This is the reply I received from my webhoster, what does this mean?
Can some help me out in this??
The testing.so module is not compatible with your version of PHP. I'm receiving the following error when I attempt to load that module into the php.ini:
[29-Apr-2010 18:03:24] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/testing.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/testing.so: invalid ELF header in Unknown on line 0
You have PHP 5.2.9 installed on this server. Is that module fully compatible with this version?
Re: External .dll file
Posted: Sat May 01, 2010 3:18 am
by requinix
deshmukh999 wrote:You have PHP 5.2.9 installed on this server. Is that module fully compatible with this version?
Well? Is it compatible?
Doesn't sound like it. That means you can't use that particular file with that particular version of PHP.
Re: External .dll file
Posted: Sat May 01, 2010 3:38 am
by deshmukh999
thanks for your reply.
Its helpfull.
I request to my client for the compatible version of that .dll file.