twQ
01-14-2010, 03:16 PM
Well, I was wondering how would I best optimize memory use? As in...
Would it be better to allow a script to end on it's own, as in <?php stuff ?> or once it's job is complete have die() at the end?
Should I unset the variables in this script:
<?php
$f = 4;
$b = 2;
$d = 1;
$n = $_GET['name'];
echo $f,$b,$d,$n;
?>
Or would it make a difference? That's not a real script of course just random stuff but it's an example.
Any memory tips are welcome!
Thanks,
Tim
Would it be better to allow a script to end on it's own, as in <?php stuff ?> or once it's job is complete have die() at the end?
Should I unset the variables in this script:
<?php
$f = 4;
$b = 2;
$d = 1;
$n = $_GET['name'];
echo $f,$b,$d,$n;
?>
Or would it make a difference? That's not a real script of course just random stuff but it's an example.
Any memory tips are welcome!
Thanks,
Tim