[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Changing DocumentRoot from ../web to ../web/



Steve,

> It's actually $DOCUMENT_ROOT.  

Right ;-)

> That's poor coding then.  The DocumentRoot probably never should 
> have had a trailing slash. 

Agreed ...

> Doing a global search and replace.  "rpl" from laffeycomputer.com is 
> a good tool for doing just that.

rpl looks great!

> Setting $DOCUMENT_ROOT at the top of each script or in 
> a script called by every other script.  It's a hack, but it 
> will work.  $DOCUMENT_ROOT .= '/';

I prefer the rpl route - the above will create more work than adding the
extra slash!

The .htaccess option is also not viable (according to gsh's post) ...

Thanks!

Johan Pretorius

. 
. http://host24.com
. Your PHP site. Every time.
.