You are not logged in.
Pages: 1
2 questions:
Why we are using (file.php) instead of (./file.php) type in including and functions?
data/inc - 28 hits
data/settings/pages - 79 hits
So, why we dont add 3 more variables:
define('INC_DIR', './data/inc/);
define('PAGES_DIR', './data/settings/pages/);
define('MODULES_DIR', './data/settings/modules/);Chars / at the end and ./ at the begining are intended.
A_Bach
Offline
Yes, I think it's a good idea to add those variables.
Offline
Why we are using (file.php) instead of (./file.php) type in including and functions?
Is there any reason why we should add ./ ?
Offline
a_bach wrote:Why we are using (file.php) instead of (./file.php) type in including and functions?
Is there any reason why we should add ./ ?
PHP can search for file also in include_path. ./ will prevent for this. I also found information, that using ./ is faster then without.
I'm waiting for your Spirit55555 messaging system. When you merged it with main branch, I will create exprerimental branch with this code for testings.
A_Bach
Offline
PHP can search for file also in include_path. ./ will prevent for this. I also found information, that using ./ is faster then without.
Okay, good reason for adding it ![]()
I'm waiting for your Spirit55555 messaging system. When you merged it with main branch, I will create exprerimental branch with this code for testings.
I still need some feedback on it, before I can merge it.
Offline
Pages: 1