Enabling *.dll's on a host that's not your own

asteroid

New member
Joined
Sep 29, 2008
Messages
2
I'm working on getting a PHP-script online that can read metadata from *.JPEG files. For that I need to use the Exif library, which is disabled by default by PHP. When I work on my localhost, I can add "extension = 'php_exif.dll'" to php.ini to solve problem.

Now what I want is putting this script on my website. I can't alter php.ini, because I don't own the IP I'm using. I'm using a host with DirectAdmin.

I tried the following (simply a line to enable *.dll's):

PHP:
<?php
dl('php_exif.dll');
?>

but I got this warning:

Warning: dl() [function.dl]: Unable to load dynamic library './php_exif.dll' - ./php_exif.dll: cannot open shared object file: No such file or directory in /home/spectogram/domains/spectogram.nl/public_html/funcs.php on line 2

I also tried putting the standard 'php_exif.dll' file in my public_html folder, but I got an 'invalid ELF header' then. So it was obviously trying to read this file, but without succes.

Does anyone have a clue how to enable standard PHP dll's on a host that is not your own? Google is a lot of help to me, but not on this topic.
 
You cannot use .dll files on linux. You will need to contact your host for a solution.
 
Ah... That sucks pretty much! Didn't even know DirectAdmin was Linux ([/n00b] I have more experience with scripting on my localhost).

Thanks anyway, may have saved me a lot of time wasting.

I have another question then, when I run phpinfo(), it says 'Configuration File (php.ini) Path: /usr/local/lib'. Can I reach this path somehow (can't find any usr/ directory), or can only my host reach it?

Thanks!
 
If you are not the admin of your server then only your host has access to the php.ini file.
 
Back
Top