SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Mar 2002
    Posts
    608
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    dl function not kicking in...

    Hello, I was interested in testing out the dl() function I want to load the gd graphics module (I am using linux/apache and didn't compile gd with php) and
    the file is located:

    /usr/lib/libgd.so

    and I try in my php page

    dl("libgd.so");

    and the gd/php script and it won't work
    I get "can't load module..." errors
    or I just get broken images. Oh, and by the way, I didn't try loading through php with extensions_dir yet, I just want to test out the dl function.

    So, what would I have to do to get it to work?
    Thanks

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think the extension has to be in the directory where PHP loads the other extensions from. Is it?

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    SitePoint Guru
    Join Date
    Mar 2002
    Posts
    608
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol, I realized a while after I posted this
    "D'oh"

    no, of course not lol

    Yeah, I have to point the extensions_dir
    to the folder that has ming.so and libgd.so
    and instead of using DL() I'll just use
    extension=ming.so
    extension=libgd.so

    and load them dynamically throgh php.ini. I just don't want to recompile

    This won't affect performance too much, will it? (I can confirm I'd be about the only one using gd/ming on this server)

    Thanks for all of your time and help.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •