Script causing 500 Internal Server Error
<p>My site has been suffering "500 Internal Server Error" often of late, and host has advised that this bundle.css.php script might be the reason why ...</p>

<pre><code>&lt;?php
ob_start('ob_gzhandler');
header('Content-Type: text/css');
$files = split(",",$_GET['files']);
foreach($files as $key=&gt;$val){
    if(file_exists($val.'.css')){
        include_once($val.'.css');
    }else{
        echo "\n\n/*** File \"$val\" does not exist. ***/\n\n";
    }
}
?&gt;
</code></pre>

<p>In the words of my host ...</p>

<p>"It is trying to buffer all of output into ob_gzhandler. It is taking a very insecure list of parameters passed in GET variable 'files', and is then trying to include those files into the output. I'm not sure exactly what list of parameters is being passed, but I suspect there is a bug somewhere in your scripts that is passing a large array of file names to this script, and thus trying to build a buffered object that is too large."</p>

<p>This is well beyond my expertise, so any advice to fix the problem would be much appreciated. Many thanks.</p>

<hr>

<p>UPDATE</p>

<p>The error log is full of lines such as ...</p>

<p>[Mon Apr 23 15:44:41 2012] [error] [client xx.xx.xx.xx] (12)Cannot allocate memory: couldn't create child process: /opt/suphp/sbin/suphp for /home/xxxxxy/public_html/xxxx.php, referer: <a href="http://www.xxxxxxx.com/wp-content/themes/xxx/style.css" rel="nofollow">http://www.xxxxxxx.com/wp-content/themes/xxx/style.css</a></p>
