Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2000121

[PHP-DB] query no longer than 5 minutes? From: Zhou Hao (perl5 <email protected>)
Date: 12/14/00

Apache1.3.14 + PHP4.0.3pl with sybase-ct
AIX 4.3.2
below is my test PHP program.
when $sql is a sql statement testing different executing time.
 $sql = "waitfor delay '0:0:1'";
when time exceed 5 minutes, my browser IE says request timeout.
I tried modify the "timeout" directive in httpd.conf, no effect
max_execute_time in php.ini neither

Has anyone seen this?

<?
 require("sybase.php3");
?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>zh test</title>
</head>

<body>
fsfsafsdfsadfsdfsadfsdfsdaf
<?
file://printt "asf";
 phpinfo();
// echo "tp";
 
 $sybdb = new CSybDb("ZSTAX_B", "sa", "sybase", "develop");
 $sql = "waitfor delay '0:0:1'";
 sybase_query($sql, $sybdb->sybdb);

 $sybrs = new CSybRs("select * from T01_JKFS", $sybdb);

 $sybrs->display(); // ... or do anything else

 $sybrs->destroy();
 $sybdb->destroy();
?>
</body>

</html>