Results 1 to 2 of 2

Thread: PHP memory optimizations

  1. #1
    Join Date
    Dec 2009
    Location
    North Carolina
    Posts
    71
    Thanks
    13
    Thanked 3 Times in 3 Posts

    Default PHP memory optimizations

    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 Code:
    <?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

  2. #2
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •