Jump to content

Loading extension at run time .... im about to tear my hair up


Smart_Weird

Recommended Posts

hi ppl

i have a very bad problem with dl() function
i want to load an extension called "magickwand.so"
the owner of the site told me that the file is located either in /usr/bin/mogrify/magickwand.so
or /usr/bin/convert/magickwand.so

i wrote that code
//=====
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]$extensionFile = "/usr/bin/mogrify/magickwand.so";
dl($extensionFile);[/quote]
//=====

but a warring comes up : [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: dl(): Unable to load dynamic library './/usr/bin/mogrify/magickwand.so' - .//usr/bin/mogrify/magickwand.so: cannot open shared object file: No such file or directory[/quote]

i noted the "./" in the beginning (extension_dir = ./ ) so i stepped up .. but
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: dl(): Unable to load dynamic library './../../../../usr/bin/mogrify/magickwand.so' - ./../../../../usr/bin/mogrify/magickwand.so: cannot open shared object file: No such file or directory[/quote]

i put the file "magickwand.so" in the same dir of the script
so $extensionFile = "magickwand.so";
but: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: dl(): Unable to load dynamic library './magickwand.so' - libWand.so.9: cannot open shared object file: No such file or directory[/quote]

can anyone give me a hand
hint: im not in the safe_mode if u gonna tell me that

thanks veryyyyy much in advance

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.