Re: need a find/replace command to fix my require_once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nathan Rixham wrote:
> 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 :)

I agree.  That's a PEAR coding standard, so unless you're coding a PEAR
package it doesn't matter.  It's the PEAR groups opinion.  If you look
at some other project, they may require the parentheses for readability.

-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux