SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: dl function not kicking in...
Hybrid View
-
Mar 3, 2002, 23:45 #1
- 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
-
Mar 4, 2002, 15:54 #2
I think the extension has to be in the directory where PHP loads the other extensions from. Is it?
SeanHarry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature
-
Mar 4, 2002, 17:31 #3
- 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