include() Why should I not use it?
Posted
by aliov
on Stack Overflow
See other posts from Stack Overflow
or by aliov
Published on 2010-05-29T22:06:43Z
Indexed on
2010/05/29
22:12 UTC
Read the original article
Hit count: 193
I am working through an older php mysql book written in 2003. The author uses the include() function to construct html pages by including header.inc, footer.inc, main.inc files, etc. Now I find out that this is not allowed in the default ini settings, (allow_url_include is set to Off) after I got many warnings from the server.
I noticed also that you can use include without the parenthesis. I tried this and it works and I get no error messages or warnings. Are the two different? That is, is include() different from include ?
© Stack Overflow or respective owner