|
From: Alex B. <en...@tu...> - 2001-07-06 19:59:11
|
hi Jimmy,
the below is very old code, and has been made obsolete by the make system.
we'll provide a 'shortcut' paths file for a quick install, but real configs
will require make.
_a
> Alex
>
>> for the distro version of r2, I want to get to the point
>> where a user can download the system, untar it, point their
>> browser to it, and have a functioning installation.
>
> This sounds like the best way to do it
>
>> I'm going to build a very simple little file called
>> binarycloud.php which will be included from each page in
>> htdocs: include_once('binarycloud.php'); note the
>> "pathlessness" - i.e. binarycloud.php will be in your
>> include_path. the idea behind this is to set the constant
>> BC_PATH before anything else happens, but to avoid using
>> prepends, etc to get that working.
>
> Agree - I don't like using prepend.
>
>> -does anyone know of a reason why
>> $HTTP_SERVER_VARS[DOCUMENT_ROOT]
>
> DOCUMENT_ROOT doesn't exist in IIS
>
>> <?php
>> $pieces = explode('/', $HTTP_SERVER_VARS[DOCUMENT_ROOT]);
>> $count = count($pieces);
>>
>> $cd_up = 1;
>>
>> for ($i=1; $i <= $count-$cd_up; $i++) {
>> $path .= '/'.$pieces[$i];
>> }
>> $path .= '/binarycloud';
>
> Why not use dirname() ?
>
>
>
> Regards,
> Jimmy
>
>
>
> _______________________________________________
> binarycloud-dev mailing list
> bin...@li...
> http://lists.sourceforge.net/lists/listinfo/binarycloud-dev
>
--
alex black, ceo
en...@tu...
the turing studio, inc.
http://www.turingstudio.com
vox+510.666.0074
fax+510.666.0093
|