Le Dim 5 Juin 2005 21:43, Jeremy Laine a écrit : > > for the webdav part, you are right, but I don't like your warning. > > > > you should use $_SERVER['SERVER_NAME'] to prefix it if it does not > > begins with https?:// .. this seems more appropriate. > > This is not always possible. For instance, if from when you want to > refer to the Diogenes base installation from a virtual host, you > cannot rely on this variable.. that is why I would much prefer to > have the users set this URL explicitly. > > What do you think?
maybe I'm too confident, but reading from the php doc : http://fr.php.net/manual/en/reserved.variables.php#reserved.variables.server 'SERVER_NAME' The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host. moreover, in the worse scenario, it's not set. so you can still use your warning in that case. So I still think I dont like your setting. -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
pgpCLqth370Ye.pgp
Description: PGP signature