php报错fatal error maximum execution time of 30 seconds exceeded in

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/forgot2015/article/details/56051569

更新workpress时失败,提示如下
Fatal error: Maximum execution time of 30 seconds exceeded in

这个错误是说你的php执行时间超过了配置的最大执行时间30秒钟,可以通过修改php配置来解决

方法:

修改php的配置文件,找到php安装目录下的php.ini文件,然后找到 maxexecutiontime = 30 ; 设置成你想要的值,单位是秒,当前设置的执行时间最大值为30秒,你可以对这个值进行一下修正,改为你的期望值。(也可以直接设置成:maxexecutiontime = 0)

阅读更多

提示错误Fatal error: Maximum execution time of 30 seconds

06-22

Link_ID )rn rn $this->Link_ID = mysql_connect( $this->Host, $this->User, $this->Password );rn if ( "4.1" < $this->version( ) )rn rn global $dbcharset;rn global $charset;rn if ( !$dbcharset && in_array( strtolower( $charset ), array( "gbk", "big5", "utf-8" ) ) )rn rn $dbcharset = str_replace( "-", "", $charset );rn rn if ( $dbcharset )rn rn mysql_query( "SET character_set_connection=$dbcharset, character_set_results=$dbcharset, character_set_client=$dbcharset" );rn rn rn if ( "5.0.1" < $this->version( ) )rn rn mysql_query( "SET sql_mode=''" );rn rn if ( !$this->Link_ID )rn rn $this->halt( "Link-ID == false, Connect failed" );rn rn if ( !mysql_query( sprintf( "use %s", $this->Database ), $this->Link_ID ) )rn rn $this->halt( "cannot use database ".$this->Database );rn rn rn rnrn function close( )rn rn if ( 0 != $this->Link_ID )rn rn mysql_close( $this->Link_ID );rn rn rnrn function query( $Query_String )rn rn $this->connect( );rn $this->Query_ID = mysql_query( $Query_String, $this->Link_ID );rn $this->Row = 0;rn $this->Error = $this->Database;rn if ( !$this->Query_ID )rn rn $this->halt( "Invalid SQL: ".$Query_String );rn rn return $this->Query_ID;rn rnrn function next_record( )rn rn $this->Record = mysql_fetch_array( $this->Query_ID );rn $this->Row += 1;rn $stat = is_array( $this->Record );rn if ( !$stat && $this->Auto_free )rn rn mysql_free_result( $this->Query_ID );rn $this->Query_ID = 0;rn rn return $stat;rn rnrn function version( )rn rn return mysql_get_server_info( );rn rnrn function seek( $pos )rn rn $status = mysql_data_seek( $this->Query_ID, $pos );rn if ( $status )rn rn $this->Row = $pos;rn rn return;rn rnrn function metadata( $table )rn rn $count = 0;rn $id = 0;rn $res = array( );rn $this->connect( );rn $id = @mysql_list_fields( $this->Database, $table );rn if ( $id < 0 )rn rn $this->halt( "Metadata query failed." );rn rn $count = mysql_num_fields( $id );rn $i = 0;rn for ( ; $i < $count; $i++ )rn rn $res[$i]['table'] = mysql_field_table( $id, $i );rn $res[$i]['name'] = mysql_field_name( $id, $i );rn $res[$i]['type'] = mysql_field_type( $id, $i );rn $res[$i]['len'] = mysql_field_len( $id, $i );rn $res[$i]['flags'] = mysql_field_flags( $id, $i );rn $res['meta'][$res[$i]['name']] = $i;rn $res['num_fields'] = $count;rn rn mysql_free_result( $id );rn return $res;rn rnrn function affected_rows( )rn rn return mysql_affected_rows( $this->Link_ID );rn rnrn function num_rows( )rn rn return mysql_num_rows( $this->Query_ID );rn rnrn function num_fields( )rn rn return mysql_num_fields( $this->Query_ID );rn rnrn function nf( )rn rn return $this->num_rows( );rn rnrn function np( )rn rn print $this->num_rows( );rn rnrn function f( $Name )rn rn return $this->Record[$Name];rn rnrn function p( $Name )rn rn print $this->Record[$Name];rn rnrn function pos( )rn rn return $this->Row;rn rnrn function instid( )rn rn return mysql_insert_id( $this->Link_ID );rn rnrn function halt( $msg )rn rn printf( "Database error: %s \n", $msg );rn printf( "MySQL Error: %s (%s) \n", $this->Errno, $this->Error );rn exit( "Session halted." );rn rnrnrnrnclass sharp_sql extends dbbase_sqlrnrnrn var $Host = "";rn var $Database = "";rn var $User = "";rn var $Password = "";rn var $Record = array( );rn var $Row;rn var $Error = "";rnrn function sharp_sql( )rn rn global $dbHost;rn global $dbName;rn global $dbUser;rn global $dbPass;rn $this->Host = $dbHost;rn $this->Database = $dbName;rn $this->User = $dbUser;rn $this->Password = $dbPass;rn rnrn function free_result( )rn rn return mysql_free_result( $this->Query_ID );rn rnrn function rollback( )rn rn return 1;rn rnrn function commit( )rn rn return 1;rn rnrn function autocommit( $onezero )rn rn return 1;rn rnrn function insert_id( $col = "", $tbl = "", $qual = "" )rn rn return mysql_insert_id( $this->Query_ID );rn rnrnrnrn$pub_inc = 1;rn$databaseeng = "mysql";rn$dialect = "";rn$msql = new sharp_sql( );rn$fsql = new sharp_sql( );rn$tsql = new sharp_sql( );rn?>rnrnrnrnrnrnrnrnrnrnrnrn提示错误Fatal error: Maximum execution time of 30 seconds exceeded in /home/bbhssyxx/public_html/school/adm/func/db.inc.php on line 67rnrn第67句是if ( !$this->Query_ID )

没有更多推荐了,返回首页