Severity: 8192
Message: Creation of dynamic property CI_URI::$config is deprecated
Filename: core/URI.php
Line Number: 101
Backtrace:
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property CI_Router::$uri is deprecated
Filename: core/Router.php
Line Number: 127
Backtrace:
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$benchmark is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$hooks is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$config is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$log is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$utf8 is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$uri is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$exceptions is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$router is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$output is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$security is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$input is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$lang is deprecated
Filename: core/Controller.php
Line Number: 75
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$load is deprecated
Filename: core/Controller.php
Line Number: 78
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$db is deprecated
Filename: core/Loader.php
Line Number: 396
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property CI_DB_mysqli_driver::$autoinit is deprecated
Filename: database/DB_driver.php
Line Number: 371
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$carabiner is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 10
Function: __construct
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Languages::$geshi_languages is deprecated
Filename: models/Languages.php
Line Number: 12
Backtrace:
File: /www/wwwroot/www.code666.cn/application/models/Languages.php
Line: 12
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 12
Function: model
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Languages::$favorite_languages is deprecated
Filename: models/Languages.php
Line Number: 13
Backtrace:
File: /www/wwwroot/www.code666.cn/application/models/Languages.php
Line: 13
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 12
Function: model
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$languages is deprecated
Filename: core/Loader.php
Line Number: 358
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 12
Function: model
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$curl is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 13
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$recaptcha_publickey is deprecated
Filename: controllers/Main.php
Line Number: 20
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 20
Function: _error_handler
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$recaptcha_privatekey is deprecated
Filename: controllers/Main.php
Line Number: 21
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 21
Function: _error_handler
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$use_recaptcha is deprecated
Filename: controllers/Main.php
Line Number: 22
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 22
Function: _error_handler
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 129
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 280
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 151
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 208
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 297
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Return type of CI_Session_database_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
Filename: drivers/Session_database_driver.php
Line Number: 335
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 282
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 289
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 304
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 314
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 315
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 316
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 317
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 375
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 110
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: session_start(): Session cannot be started after headers have already been sent (sent from /www/wwwroot/www.code666.cn/system/core/Exceptions.php on line 271)
Filename: Session/Session.php
Line Number: 143
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$session is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 63
Function: library
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: stristr(): Passing null to parameter #1 ($haystack) of type string is deprecated
Filename: controllers/Main.php
Line Number: 229
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 229
Function: stristr
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: stristr(): Passing null to parameter #1 ($haystack) of type string is deprecated
Filename: controllers/Main.php
Line Number: 251
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 251
Function: stristr
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: stristr(): Passing null to parameter #1 ($haystack) of type string is deprecated
Filename: controllers/Main.php
Line Number: 269
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 269
Function: stristr
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$pastes is deprecated
Filename: core/Loader.php
Line Number: 358
Backtrace:
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 466
Function: model
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property Main::$process is deprecated
Filename: core/Loader.php
Line Number: 1283
Backtrace:
File: /www/wwwroot/www.code666.cn/application/models/Pastes.php
Line: 421
Function: library
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 470
Function: getPaste
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: filter_var(): Passing null to parameter #3 ($options) of type array|int is deprecated
Filename: core/Input.php
Line Number: 572
Backtrace:
File: /www/wwwroot/www.code666.cn/application/models/Pastes.php
Line: 522
Function: ip_address
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 470
Function: getPaste
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$benchmark is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$hooks is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$config is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$log is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$utf8 is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$uri is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$exceptions is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$router is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$output is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$security is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$input is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$lang is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$load is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$db is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$carabiner is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$languages is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$curl is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$recaptcha_publickey is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$recaptcha_privatekey is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$use_recaptcha is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$session is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$pastes is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: 8192
Message: Creation of dynamic property MY_Loader::$process is deprecated
Filename: core/MY_Loader.php
Line Number: 108
Backtrace:
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 108
Function: _error_handler
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /www/wwwroot/www.code666.cn/system/core/Exceptions.php:271)
Filename: view/raw.php
Line Number: 2
Backtrace:
File: /www/wwwroot/www.code666.cn/themes/default/views/view/raw.php
Line: 2
Function: header
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 147
Function: include
File: /www/wwwroot/www.code666.cn/application/core/MY_Loader.php
Line: 30
Function: _ci_load
File: /www/wwwroot/www.code666.cn/application/controllers/Main.php
Line: 478
Function: view
File: /www/wwwroot/www.code666.cn/index.php
Line: 284
Function: require_once
".$errorstring.""; } function cache_page($pageurl,$pagedata){ if(!$fso=fopen($pageurl,'w')){ $this->warns('无法打开缓存文件.');//trigger_error return false; if(!flock($fso,LOCK_EX)){//LOCK_NB,排它型锁定 $this->warns('无法锁定缓存文件.');//trigger_error return false; } if(!fwrite($fso,$pagedata)){//写入字节流,serialize写入其他格式 $this->warns('无法写入缓存文件.');//trigger_error return false; } flock($fso,LOCK_UN);//释放锁定 fclose($fso); return true; } function display_cache($cacheFile){ if(!file_exists($cacheFile)){ $this->warn('无法读取缓存文件.');//trigger_error return false; } echo '读取缓存文件:'.$cacheFile; //return unserialize(file_get_contents($cacheFile)); $fso = fopen($cacheFile, 'r'); $data = fread($fso, filesize($cacheFile)); fclose($fso); return $data; } function readData($cacheFile='default_cache.txt'){ $cacheFile = $this->cache_dir."/".$cacheFile; if(file_exists($cacheFile)&filemtime($cacheFile)>(time()-$this->expireTime)){ $data=$this->display_cache($cacheFile); }else{ $data="from here wo can get it from mysql database,update time is ".date('l dS \of F Y h:i:s A').",过期时间是:".date('l dS \of F Y h:i:s A',time()+$this->expireTime)."----------"; $this->cache_page($cacheFile,$data); } return $data; } /* 下面我打断这个代码逐行解释. php学习之家http://www.444p.com 三、程序透析 这个缓存类(类没什么好怕的.请继续看)名称是cache,有2个属性: private $cache_dir; private $expireTime=180; $cache_dir是缓存文件所放的相对网站目录的父目录, $expireTime(注释一)是我们缓存的数据过期的时间,主要是这个思路: 当数据或者文件被加载的时候,先判断缓存文件存在不,返回false ,文件最后修改时间和缓存的时间和比当前时间大不,大的话说明缓存还没到期,小的话返回false,当返回false的时候,读取原始数据,写入缓存文件中,返回数据., 接着看程序: php学习之家http://www.444p.com */ function __construct($cache_dirname){ if(!@is_dir($cache_dirname)){ if(!@mkdir($cache_dirname,0777)){ $this->warn('缓存文件不存在而且不能创建,需要手动创建.'); return false; } } $this->cache_dir = $cache_dirname; } /*当类第一次被实例的时候构造默认函数带参数缓存文件名称,如文件不存在,创建一个有编辑权限的文件夹, 创建失败的时候抛出异常.然后把cache类的 $cache_dir属性设置为这个文件夹名称,我们的所有缓存文件都是在这个 文件夹下面的. php学习之家 */ function __destruct(){ echo 'Cache class bye.'; } //这是class类的析构函数,为了演示,我们输出一个字符串表示我们释放cache类资源成功. php学习之家 function warn($errorstring){ echo "发生错误:
".$errorstring.""; } /* 这个方法输出错误信息. php学习之家 */ function get_url() { if (!isset($_SERVER['REQUEST_URI'])) { $url = $_SERVER['REQUEST_URI']; }else{ $url = $_SERVER['s cript_NAME']; $url .= (!empty($_SERVER['QUERY_STRING'])) ? '?' . $_SERVER['QUERY_STRING'] : ''; } return $url; } /* 这个方法返回当前url的信息,这是我看国外很多人的cms系统这样做,主要是缓存x.php?page=1,x.php?page=2, 等这种文件的,这里列出是为了扩展的这个cache类功能的. www.444p.com */ function cache_page($pageurl,$pagedata){ if(!$fso=fopen($pageurl,'w')){ $this->warns('无法打开缓存文件.');//trigger_error return false; } if(!flock($fso,LOCK_EX)){//LOCK_NB,排它型锁定 $this->warns('无法锁定缓存文件.');//trigger_error return false; } if(!fwrite($fso,$pagedata)){//写入字节流,serialize写入其他格式 $this->warns('无法写入缓存文件.');//trigger_error return false; } flock($fso,LOCK_UN);//释放锁定 fclose($fso); return true; } /* cache_page方法分别传入的是缓存的文件名称和数据,这是把数据写到文件里的方法,先用fopen打开文件, 然后调用句柄锁定这个文件,然后用 fwrite写入文件,最后释放这个句柄,任何一步发生错误将抛出错误. 您可能看到这个注释写入字节流,serialize写入其他格式,顺便一提的是如果我们要把一个数组, (可以从MySQL数据库里面select查询除了的结果)用 serialize函数写入,用unserialize读取到原来的类型. php学习之家 */ function display_cache($cacheFile){ if(!file_exists($cacheFile)){ $this->warn('无法读取缓存文件.');//trigger_error return false; } echo '读取缓存文件:'.$cacheFile; //return unserialize(file_get_contents($cacheFile)); $fso = fopen($cacheFile, 'r'); $data = fread($fso, filesize($cacheFile)); fclose($fso); return $data; } /* 这是由文件名称读取缓存的方法,直接打开文件,读取全部,如果文件不存在的或者无法读取的话返回false, 当然,你感到不人性的话,可以重新生成缓存. */ function readData($cacheFile='default_cache.txt'){ $cacheFile = $this->cache_dir."/".$cacheFile; if(file_exists($cacheFile)&&filemtime($cacheFile)>(time()-$this->expireTime)){ $data=$this->display_cache($cacheFile); }else{ $data="from here wo can get it from mysql database,update time is ".date('l dS \of F Y h:i:s A').",过期时间是:".date('l dS \of F Y h:i:s A',time()+$this->expireTime)."----------"; $this->cache_page($cacheFile,$data); } return $data; } /* 这个函数是我们调用的方法,可以写成接口的方法,由传入参数判断文件存在不,文件最后修改时间+expireTime的时间是不是过了当前时间(大于的话说明没有过期),如果文件不存在或者已经过期,重新加载原始数据,这里,为了简单期间,我们是直接源是字符串,您可以把cache类继承某类,取到数据库的数据.(注释2) php学习之家 四、补充说明,结语 注释一 :这个缓存的时间您可以自己调,可以根据时间情况读取数组,xml,缓存等,请按照您的方便,值得一提的是缓存的时间(也就是缓存的key)也用缓存控制,.这在cms系统中被广泛使用,他们把要更新的key放在缓存中,非常容易控制全战. php学习之家 注释二: php5开始支持类继承,这是让人兴奋的,把网站全局休息写在一个配置的类里面,再写与数据层交互的类(如与MySQL交互的类),我们的这个cache类继承数据交互的类,可以非常容易的读取数据库,这是外话,此处不再展开,有时间和大家详谈. 特别说明,这个类文件针对的php5以上版本,其他版本的请不要使用类. */ ?>