How can defined global variable ($begin) that will be recognized in all php file?
(please dont change the case code only add, because I working on big project that i can only add code)
Case:(problem $begin not recognized in the end of the file)
<?php $begin=time()?>
<div>new name</div>
<?php echo time()-$begin; ?>
Edit:
I have stupid mistake in file, now the code works, thanks
Thanks
You use, constants as they have global scope.
or if you cant do that because of your “large” project. maybe you want to double var it.
poor programming though, there’s no need for that many vars for one small entity, I would rewrite with define and overwrite all instances of
$beginwithTS_START