Re: need a find/replace command to fix my require_once
| From: | Nathan Rixham | Date: | Fri, 20 Nov 2009 09:28:48 +0000 |
| Subject: | Re: need a find/replace command to fix my require_once | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299954@lists.php.net to get a copy of this message | ||
Daevid Vincent wrote:
> I was reading this:
> http://pear.php.net/manual/en/standards.including.php
> and it states:
>
> "Note: include_once and require_once are statements, not functions.
> Parentheses should not surround the subject filename."
>
> I never knew that. I've always (wrongly) used:
>
> require_once('/path/to/my/file');
>
if it ain't broken don't fix it - why not just ensure you do it the
correct way (or preferred way) in the future.
sure the time could better be invested fixing a bug, writing a test or
documenting something.
s'all your call though :)