Re: HELP: Nested include(...)'s take relative paths not intuitively
| From: | John W. Holmes | Date: | Thu, 12 Feb 2004 00:36:53 +0000 |
| Subject: | Re: HELP: Nested include(...)'s take relative paths not intuitively | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177333@lists.php.net to get a copy of this message | ||
Richard Davey wrote:
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" ?If you use echo, then you should use include(). If you use print, then you should use include " ". Unless you use echo(), then you should use include" " and if you use print " ", then you should use include(). Unless you don't want to. :) Like someone else said: Personal preference. There's no right or wrong. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com