虚拟主机出错Fatal error: Maximum execution time of 30 seconds exceeded in
Fatalerror:Maximumexecutiontimeof30secondsexceededinD:\www\Zxc3256\wwwroot\inc\conn.p...
Fatal error: Maximum execution time of 30 seconds exceeded in D:\www\Zxc3256\wwwroot\inc\conn.php on line 3
CONN.PHP代码是这样的
-----------------------
<?php
session_start();
header("Content-Type:text/html;Charset=utf-8");
require_once ("config.php");
require_once ("ftp.php");
require_once ("class.php");
require_once ("function.php");
require_once ("template.php");
initObj();
$db = new AppDataBase(app_dbserver,app_dbuser,app_dbpass,app_dbname);
$template = new AppTemplate();
$mac = array("vodid"=>-1,"vodnum"=>-1,"vodsrc"=>-1,"vodtypeid"=>-1,"vodtypepid"=>-1,"vodtopicid"=>-1,"arttypeid"=>-1,"arttypepid"=>-1,"arttopicid"=>-1,"flag"=>"","type"=>"","key"=>"","keytype"=>"","ids"=>"","pinyin"=>"","starring"=>"","directed"=>"","area"=>"","language"=>"","year"=>"","des"=>"","keyword"=>"","letter"=>"","where"=>"","order"=>"","by"=>"","listorder"=>"","page"=>1);
$cache=getGlobalCache("cache","php");//视频分类0,文章分类1,视频专题2,文章专题3,地区4,语言5,用户组6
?>
---------------
求高人解答 展开
CONN.PHP代码是这样的
-----------------------
<?php
session_start();
header("Content-Type:text/html;Charset=utf-8");
require_once ("config.php");
require_once ("ftp.php");
require_once ("class.php");
require_once ("function.php");
require_once ("template.php");
initObj();
$db = new AppDataBase(app_dbserver,app_dbuser,app_dbpass,app_dbname);
$template = new AppTemplate();
$mac = array("vodid"=>-1,"vodnum"=>-1,"vodsrc"=>-1,"vodtypeid"=>-1,"vodtypepid"=>-1,"vodtopicid"=>-1,"arttypeid"=>-1,"arttypepid"=>-1,"arttopicid"=>-1,"flag"=>"","type"=>"","key"=>"","keytype"=>"","ids"=>"","pinyin"=>"","starring"=>"","directed"=>"","area"=>"","language"=>"","year"=>"","des"=>"","keyword"=>"","letter"=>"","where"=>"","order"=>"","by"=>"","listorder"=>"","page"=>1);
$cache=getGlobalCache("cache","php");//视频分类0,文章分类1,视频专题2,文章专题3,地区4,语言5,用户组6
?>
---------------
求高人解答 展开
3个回答
展开全部
服务器超时
最好的办法是修改配置文件php.ini:max_execution_time = 300(再大点也行),然后重起php服务,或者在程序写
set_time_limit(时间); //0为无限制。
但你是虚拟主机,可能是用户太多了,精简一下数据库吧。
最好的办法是修改配置文件php.ini:max_execution_time = 300(再大点也行),然后重起php服务,或者在程序写
set_time_limit(时间); //0为无限制。
但你是虚拟主机,可能是用户太多了,精简一下数据库吧。
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
估计是连接数据库超时了。。。。
追问
这个怎么解决呀
追答
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询