[Bb-trac] Re: [bbPress] #945: plugins activate but don't actually run on IIS + PHP 4.3

bbPress bb-trac at lists.bbpress.org
Tue Aug 26 16:00:23 GMT 2008


#945: plugins activate but don't actually run on IIS + PHP 4.3
----------------------+-----------------------------------------------------
 Reporter:  _ck_      |        Owner:             
     Type:  defect    |       Status:  new        
 Priority:  normal    |    Milestone:             
Component:  Back-end  |      Version:  1.0-alpha-1
 Severity:  normal    |   Resolution:             
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by _ck_):

 Ah I bet this has to do with Windows and it's silly paths that use "\"
 instead of "/" and how dirname is used to try to calculate the web path
 based on the physical file path. I had the same problem in a number of my
 plugins and had to come up with this contortion to make it work:

 {{{
 $web_path_to_plugin=bb_get_option('uri').trim(str_replace(array(trim(BBPATH,"/\\"),"\\"),array("","/"),dirname(__FILE__)),'
 /\\').'/';
 }}}

-- 
Ticket URL: <http://trac.bbpress.org/ticket/945#comment:3>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list