SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Apr 2001
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    compile-time options of php

    Everywhere in the manual of PHP I see that to use different modules it had to be compiled in at compile time, eg.
    with-module

    Eg. To work with images, the document state:
    You will also have to compile PHP with
    -with-jpeg-dir=/path/to/jpeg-6b.

    Does this mean that everytime you want to use one of these special modules that weren't included you have to recompile your PHP each time and reinstall it - this cannot be!

    What way can you let PHP use new modules that weren't compiled in at compile time, that you later on want to use?

  2. #2
    SitePoint Zealot New Oddity's Avatar
    Join Date
    Jun 2001
    Location
    Georgia
    Posts
    102
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry, hate to break the news to you... But you have to recompile it everythime you find something new you want to use. The server was desi9gned for a web admin to sit down and say to themself, "Okay, I need a server to do this and that." And they would go build to only do this and that. It keeps down on server size and processor time because it is not looking for as many things...

    Hope I've given you some insight.
    --Odd
    "We all live in a yellow subroutine."
    "Some call it insanity; I call it inspiration!"

  3. #3
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    New Oddity and driesvt actually you can enable dynamic loading od modules, but your php must be compiled with dl support. --enable_dl


    //From the manual about dynamic loading of modules at runtime.
    http://www.php.net/manual/en/function.dl.php


    The configuration directives explained
    http://www.php.net/manual/en/configuration.php
    search the page for "enable_dl"
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  4. #4
    SitePoint Member
    Join Date
    Apr 2001
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Small correction --enable-dl

    Thank you for the help, freddydoesphp and New Oddity.

    However --enable_dl doesn't want to work, but the correct option is --enable-dl

  5. #5
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh right sorry for the typo.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


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
  •