External .dll file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
deshmukh999
Forum Commoner
Posts: 32
Joined: Mon Mar 15, 2010 2:01 am

External .dll file

Post 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
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: External .dll file

Post by requinix »

Are you on shared hosting?
deshmukh999
Forum Commoner
Posts: 32
Joined: Mon Mar 15, 2010 2:01 am

Re: External .dll file

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: External .dll file

Post by requinix »

Are you on shared hosting?
deshmukh999
Forum Commoner
Posts: 32
Joined: Mon Mar 15, 2010 2:01 am

Re: External .dll file

Post by deshmukh999 »

Its is dedicated hosting.
deshmukh999
Forum Commoner
Posts: 32
Joined: Mon Mar 15, 2010 2:01 am

Re: External .dll file

Post 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...
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: External .dll file

Post 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.
deshmukh999
Forum Commoner
Posts: 32
Joined: Mon Mar 15, 2010 2:01 am

Re: External .dll file

Post by deshmukh999 »

I am trying to do in localhost, even then its not working.
dl() itself is not defined.
deshmukh999
Forum Commoner
Posts: 32
Joined: Mon Mar 15, 2010 2:01 am

Re: External .dll file

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: External .dll file

Post 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.
deshmukh999
Forum Commoner
Posts: 32
Joined: Mon Mar 15, 2010 2:01 am

Re: External .dll file

Post by deshmukh999 »

thanks for your reply.
Its helpfull.
I request to my client for the compatible version of that .dll file.
Post Reply