I am making a very simple webpage to display my VFX demo reel. You can see what I’ve got at melissawhitcomb.com/main.php. I’m using a bit of PHP to change the content of the center of the page.
[php]<?php
set_include_path(‘melissawhitcomb.com/public_html/code’);
include(“code/header.shtml”);
include(“code/buttons.shtml”);
echo ‘
$content = $_GET[‘content’];
if ($content) {
include($content);
} else {
include(“code/comp_reel.shtml”);
}
echo ‘
include(“code/footer.shtml”);
echo “memory_get_usage = “. memory_get_usage().”
\n”;
echo “memory_get_peak_usage = “.memory_get_peak_usage().”
\n”;
?>[/php]
memory_get_usage and memory_get_peak_usage are returning 91192 bytes and 108632 bytes respectively, but I am getting "
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 331710352 bytes) in Unknown on line 0".
I’m totally confused since it doesn’t seem like I’m trying to allocate nearly that much memory. However, the page is working perfectly (in Firefox and Chrome, haven’t tested others yet) except for the error appearing at the bottom. I tried using ini_set() and error_reporting(0) to stop visitors from seeing the message, but they had no effect. Adding text to .htaccess caused the page to not load.
I would really like to get this solved as soon as possible and any help is greatly appreciated.
Thanks,
Melissa