RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively
| From: | Martin Towell | Date: | Wed, 11 Feb 2004 00:29:37 +0000 |
| Subject: | RE: Re[2]: [PHP] HELP: Nested include(...)'s take relative paths not intuitively | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-177331@lists.php.net to get a copy of this message | ||
> Hello John,
>
> Tuesday, February 10, 2004, 8:20:50 PM, you wrote:
>
> JWH> include($_CONF['path'] . '/test.php');
>
> This is slightly off-topic, but related to the include() function.
> What is the given "standard" regarding when you should or shouldn't
> use braces on a function.
>
> For example:
>
> include "$dir/file.php"
>
> vs.
>
> include("$dir/file.php")
>
> Both work just fine. The manual includes examples of both methods. So
> which do most people consider "the right way" ?
This is one of those "personal preference" things. Pick which ever way you
like the best and stick with it.
Martin