[FX.php List] The skinny on includes

Anders Monsen andersm at me.com
Tue Jun 21 13:45:25 MDT 2011


There are other things to consider aside from speed.

include will continue after a fatal error, but require will die after a fatal error.

Anders Monsen


On Jun 21, 2011, at 2:41 PM, Bob Patin wrote:

> Here's my question:
> 
> At the top of my page, when I'm including the FX.php function page and my DB config page, which should I use:
> 
> include
> include_once
> require
> require_once
> 
> I saw a post the other day where someone said that include_once takes something like 10x longer to process; true?
> 
> All this time I've been using "include_once" and now I'm wondering if I've been needlessly slowing things down.
> 
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
> iChat: bobpatin
> FileMaker 9, 10 & 11 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> Expert FileMaker Consulting 
> FileMaker Hosting for all versions of FileMaker
> PHP • Full email services • Free DNS hosting • Colocation • Consulting:
> 
> 
> 
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20110621/11c0f61f/attachment.html


More information about the FX.php_List mailing list