SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru TacMaf's Avatar
    Join Date
    Dec 2005
    Location
    Manchester, United Kingdom
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom php.ini per site

    Hi,

    I have php 5.3 on my windows server using IIS and FCGI. The problem I have is I need the php extension fileinfo enabled for one site, and disabled for the rest. What's the best way to go about this? I've tried ini_set() and had no luck. I could have separate php.ini files but have no idea how to set them up?

    Cheers,
    Rhys

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    ini_set is only for PHP directives, as set in the ini file.

    Judging by the docs, using dl() might be the way to go.

    Test if site is permitted then load the extension?

    http://php.net/manual/en/function.dl.php

    Maybe there is a way to do this per site/directory via .htaccess but I cannot find mention of it, ah wait up php load extension htaccess

  3. #3
    SitePoint Guru TacMaf's Avatar
    Join Date
    Dec 2005
    Location
    Manchester, United Kingdom
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can't use dl because function doesn't work properly in "multithreaded servers, like IIS", so it's disabled. And tried editting .htaccess with no change. I think that only works if Apache is loading php as a module?

    Cheers.


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
  •