I have this problem,
When I run the script, which contains a recursive function that has a global variable ..
I get this error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.More information about this error may be available in the server error log.
I used to get this error only when the file I try to run does not exist.. but it's happening in this function ..
The apache error log says:
[Thu Feb 07 16:15:02 2002] [error] Cannot remove module mod_speling.c: not found in module list
The function is:
function topics($topicid,$i)
{
global $topics; //This is the global var, an array
echo ($topics[$i]['cat_name']);
if ($i>=count($topics))
{
return "";
}
else
{
$i++;
topics($topics[$i]['id'],$i);
}
}
I hope this is not a bug in php..
Can someone help me .. I really need to use recursion ..