[Wed Sep 11 17:58:44 2024] [notice] Parent: child process exited with status 3221225725 -- Restarting.
[Wed Sep 11 17:58:44 2024] [notice] Apache/2.2.25 (Win32) configured -- resuming normal operations
[Wed Sep 11 17:58:44 2024] [notice] Server built: Jul 10 2013 01:52:12
[Wed Sep 11 17:58:44 2024] [notice] Parent: Created child process 39728
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Child process is running
[Wed Sep 11 17:58:44 2024] [crit] (OS 5)拒绝访问。 : master_main: WaitForMultipeObjects WAIT_FAILED -- doing server shutdown
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Acquired the start mutex.
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Starting 250 worker threads.
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Exit event signaled. Child process is ending.
[Wed Sep 11 17:58:44 2024] [notice] Child 39728: Starting thread to listen on port 8080.
[Wed Sep 11 17:58:45 2024] [notice] Child 39728: Released the start mutex
[Wed Sep 11 17:58:46 2024] [notice] Child 39728: All worker threads have exited.
[Wed Sep 11 17:58:46 2024] [notice] Child 39728: Child process is exiting
[Wed Sep 11 17:58:46 2024] [notice] Parent: Child process exited successfully.
[Wed Sep 11 18:00:32 2024] [notice] Apache/2.2.25 (Win32) configured -- resuming normal operations
[Wed Sep 11 18:00:32 2024] [notice] Server built: Jul 10 2013 01:52:12
[Wed Sep 11 18:00:32 2024] [notice] Parent: Created child process 23376
[Wed Sep 11 18:00:32 2024] [notice] Child 23376: Child process is running
[Wed Sep 11 18:00:32 2024] [notice] Child 23376: Acquired the start mutex.
[Wed Sep 11 18:00:32 2024] [notice] Child 23376: Starting 250 worker threads.
[Wed Sep 11 18:00:32 2024] [notice] Child 23376: Starting thread to listen on port 8080.
已经找到问题了,那个数据连接应该是有问题。第二第三种写法没有问题,第一种有问题。请问为什么?
function sort_tree_list( $SORT_ID)
{
$query = "SELECT * from 111 where SORT_PARENT='".$SORT_ID."' order by SORT_NO"; //and SORT_PARENT!='2950'
$cursor = exequery(TD::conn(), $query );
$OPTION_TEXT = "";
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$SORT_ID = $ROW['SORT_ID'];
$OPTION_TEXT .=$ROW['SORT_NAME'];
$OPTION_TEXT .= sort_tree_list( $SORT_ID);
}
mysql_free_result($cursor);
return $OPTION_TEXT;
}
function sort_tree_list2( $SORT_ID,$arr_con)
{
$query = "SELECT * from 111 where SORT_PARENT='".$SORT_ID."' order by SORT_NO";
$conn=OpenConnection($arr_con,$arr_con);
$cursor = mysql_query($query,$conn);
$OPTION_TEXT = "";
$array=array();
while ( $ROW1 = mysql_fetch_array( $cursor ) )
{
$array[]=$ROW1;
}
mysql_free_result($cursor);
mysql_close($conn);
foreach ($array as $key => $ROW) {
$SORT_ID = $ROW['SORT_ID'];
$OPTION_TEXT .=$ROW['SORT_NAME'];
$OPTION_TEXT .= sort_tree_list2( $SORT_ID,$arr_con);
}
return $OPTION_TEXT;
}
function sort_tree_list3( $SORT_ID,$conn)
{
$query = "SELECT * from 111 where SORT_PARENT='".$SORT_ID."' order by SORT_NO";
$cursor = mysql_query($query,$conn);
$OPTION_TEXT = "";
$array=array();
while ( $ROW1 = mysql_fetch_array( $cursor ) )
{
$array[]=$ROW1;
}
mysql_free_result($cursor);
foreach ($array as $key => $ROW) {
$SORT_ID = $ROW['SORT_ID'];
$OPTION_TEXT .=$ROW['SORT_NAME'];
$OPTION_TEXT .= sort_tree_list3( $SORT_ID,$conn);
}
return $OPTION_TEXT;
}
//echo sort_tree_list(0);
echo sort_tree_list2(0,$arr_con);
//$conn=OpenConnection($arr_con);
//echo sort_tree_list3(0,$conn);