Hi,
I made a mistake in a script that completely froze my linux-based server:
I passed an array instead of a number to a function like:
function plg_ratingimg($ rating)
{
global $plug_picrank;
for ($i=0;$i<$ratin g;$i++)
{
$out.=$plug_pic rank;
}
return $out;
}
where $plug_picrank is a simple HTML string.
Where is the weakness in the apache or php setup that something like this
can freeze the server?
thanks
Oliver
I made a mistake in a script that completely froze my linux-based server:
I passed an array instead of a number to a function like:
function plg_ratingimg($ rating)
{
global $plug_picrank;
for ($i=0;$i<$ratin g;$i++)
{
$out.=$plug_pic rank;
}
return $out;
}
where $plug_picrank is a simple HTML string.
Where is the weakness in the apache or php setup that something like this
can freeze the server?
thanks
Oliver
Comment