-
require_once
i was wondering what effect this would have
-----------------------
file1.php
require_once(file2.pinc);
require_once(file3.pinc);
some code
-----------------------
file2.pinc
require_once(file3.pinc);
some code
-----------------------
file3.pinc
some code
-
well, you ain't really requiring once are you.
you require file3.pinc in the file1.php then again in file2.pinc when you require file2.pinc in file1.php.
well that is confusing. I wouldn't do it that way.
-
just to clarfiy file1.php can use file3.pinc if file2.pinc requires it.
(only just learning php)
-
but why do that if you you are already requiring file3.pinc in file1.php
require file3.pinc in file1.php.
no need to include it in file2.pinc if you are already including it in file1.php.