I have a system used for multiple sites.
Most functions are standard, but some sites have some extra functions.
I want the extra functions in a file by itself, so the files containing the
standard functions can be the same in all sites.
I tried
while (..) {
switch ($op)
case "std1":
...
break
case "std2":
...
break
@include "custom_functio ns.php";
default:
....
break;
}
custom_function s.php:
<?
case "custom1":
...
break;
?>
But custom_function s.php are never included.
It appears that the include takes place at run-time. Is there some way to
include at compile-time?
Or other neat way to accomplish what I want: To have custom bits in separate
file.
Leif
Most functions are standard, but some sites have some extra functions.
I want the extra functions in a file by itself, so the files containing the
standard functions can be the same in all sites.
I tried
while (..) {
switch ($op)
case "std1":
...
break
case "std2":
...
break
@include "custom_functio ns.php";
default:
....
break;
}
custom_function s.php:
<?
case "custom1":
...
break;
?>
But custom_function s.php are never included.
It appears that the include takes place at run-time. Is there some way to
include at compile-time?
Or other neat way to accomplish what I want: To have custom bits in separate
file.
Leif
Comment