RE: [PHP] Displaying PHP-File
| From: | Christensen, BruceX R | Date: | Thu, 10 Aug 2000 17:16:24 +0000 |
| Subject: | RE: [PHP] Displaying PHP-File | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11186@lists.php.net to get a copy of this message | ||
And the reason that they're not required is that include is not a function
(for which parentheses are always required), but a language statement (for
which they're optional).
--Bruce
Bruce Christensen
Intel Corporation
brucex.r.christensen@intel.com
-----Original Message-----
From: Brian Clark [mailto:brianj@ais.ais-gwd.com]
Sent: Thursday, August 10, 2000 1:06 AM
To: Niklas Brunlid
Cc: php-general@lists.php.net
Subject: Re: [PHP] Displaying PHP-File
Niklas Brunlid wrote:
>"include" needs parantheses (sp?):
>
> include("ShowForm.php");
>
>(strangely enough, the first example at
>"http://www.php.net/manual/function.include.php" has
>none... weird).
Nope, they're not required.
include 'foo.inc.php';
works fine.
>Also note that ShowForm.php will start out in HTML mode.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net