[FX.php List] why MICROSOFT IIS TWEAKS

Chris Hansen chris at iViking.org
Mon Aug 15 09:13:27 MDT 2005


Frank,

You should be fine with just an include_once().  The original intent 
was to try and create an include path that would work in people's own 
files (which would likely not be in the FX directory), but tweaking the 
path so that it's generally accepted has been a problem :-p  Sorry for 
the hassle.  Best,

--Chris Hansen
   creator of FX.php
   "The best way from FileMaker to the Web."
   www.iViking.org

On Aug 15, 2005, at 9:09 AM, Someone wrote:

> Hi
> Can anyone explain why MICROSOFT IIS TWEAKS is needed.
> Why not just have -> include_once("FX.php");
>
> I'm getting an error with the below method
> Notice: Undefined index: PATH_TRANSLATED in 
> c:\Inetpub\wwwroot\ztest.php on line 19
>
> // MICROSOFT IIS TWEAKS
>
> if (! isset($_SERVER['DOCUMENT_ROOT'])) {
>     global $DOCUMENT_ROOT;
>     global $HTTP_SERVER_VARS;
>
>     $_SERVER['DOCUMENT_ROOT'] = str_replace(str_replace('\\\\', '/', 
> $_SERVER['PHP_SELF']), '', str_replace('\\\\', '/', 
> $_SERVER['PATH_TRANSLATED'])) . '/';
>     $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
>     $HTTP_SERVER_VARS['DOCUMENT_ROOT'] = $_SERVER['DOCUMENT_ROOT'];
> }
>
> // END MICROSOFT IIS TWEAKS
> include_once($_SERVER['DOCUMENT_ROOT'] ."FX.php");
>
> Thanks
> Frank
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>



More information about the FX.php_List mailing list