|
From: <php...@li...> - 2007-09-11 13:23:24
|
> Why don't you simply put the code in a procedure and invoke
> it when needed?
Sure - it's a bit unusal though, to include stuff this way, but it
would work.
Frankly, I don't quite understand why there is such unexpected and
strong reluctance to accept my proposed tiny, tiny modification. Just
change lines 5-7 from:
...
$version = phpversion();
if ((version_compare("5.1.2", $version(), ">"))) {
$msg = '<br><strong>PHP '.$version.' too old.</strong>...
...
to:
...
if ((version_compare("5.1.2", phpversion(), ">"))) {
$msg = '<br><strong>PHP '.phpversion().' too old.</strong>...
...
and then there won't be any more such trouble (and also no special
"style" or wrapper necessary to include the bridge necessary).
Take it or leave it...
Michael
|