diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8c7d748 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/.idea +/vender +/composer.lock +/Application/log/* \ No newline at end of file diff --git a/.htaccess b/.htaccess deleted file mode 100644 index 3100169..0000000 --- a/.htaccess +++ /dev/null @@ -1 +0,0 @@ -php_flag session.auto_star 0 \ No newline at end of file diff --git a/Application/Config/config.php b/Application/Config/config.php index f1d2b22..d4cd4a4 100644 --- a/Application/Config/config.php +++ b/Application/Config/config.php @@ -11,7 +11,7 @@ 'database'=>array( 'host' => '127.0.0.1', 'user' => 'root', - 'pwd' => '', + 'pwd' => 'root', 'dbname'=> 'product' ), //应用程序的配置信息 diff --git a/Application/Controller/Home/HomeController.class.php b/Application/Controller/Home/HomeController.class.php index 5ea91f4..32fad0c 100644 --- a/Application/Controller/Home/HomeController.class.php +++ b/Application/Controller/Home/HomeController.class.php @@ -24,9 +24,6 @@ public function listAction(){ $list=$model_list->getCategoryTree(); //确定分类栏目 $n=isset($_GET['n'])?$_GET['n']:0;//确定栏目div和li的位置,默认是显示全部 - //获得一级分类的总数 - $model_category=new CategoryModel(); - $m=$model_category->getFirstNumber(); $pid=isset($_GET['pid'])?$_GET['pid']:'';//确定父亲栏目(一级栏目) $id=isset($_GET['id'])?$_GET['id']:'';//确定子栏目(二级栏目) //获取分页信息 diff --git a/Application/log/error_log b/Application/log/error_log deleted file mode 100644 index 12b9ae2..0000000 --- a/Application/log/error_log +++ /dev/null @@ -1,452 +0,0 @@ -[19-Sep-2018 16:32:27 PRC] PHP Notice: Undefined variable: list in F:\myphp_www\PHPTutorial\WWW\Application\View\Home\index.html on line 166 -[19-Sep-2018 16:32:27 PRC] PHP Warning: Invalid argument supplied for foreach() in F:\myphp_www\PHPTutorial\WWW\Application\View\Home\index.html on line 166 -[22-Sep-2018 10:58:00 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in F:\wamp\www\Framework\Core\Framework.class.php on line 82 -[22-Sep-2018 10:58:00 PRC] PHP Stack trace: -[22-Sep-2018 10:58:00 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[22-Sep-2018 10:58:00 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[22-Sep-2018 10:58:00 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[22-Sep-2018 10:58:15 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in F:\wamp\www\Framework\Core\Framework.class.php on line 82 -[22-Sep-2018 10:58:15 PRC] PHP Stack trace: -[22-Sep-2018 10:58:15 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[22-Sep-2018 10:58:15 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[22-Sep-2018 10:58:15 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[22-Sep-2018 11:03:12 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in F:\wamp\www\Framework\Core\Framework.class.php on line 82 -[22-Sep-2018 11:03:12 PRC] PHP Stack trace: -[22-Sep-2018 11:03:12 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[22-Sep-2018 11:03:12 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[22-Sep-2018 11:03:12 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[22-Sep-2018 11:03:35 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in F:\wamp\www\Framework\Core\Framework.class.php on line 82 -[22-Sep-2018 11:03:35 PRC] PHP Stack trace: -[22-Sep-2018 11:03:35 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[22-Sep-2018 11:03:35 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[22-Sep-2018 11:03:35 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[22-Sep-2018 11:04:19 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in F:\wamp\www\Framework\Core\Framework.class.php on line 82 -[22-Sep-2018 11:04:19 PRC] PHP Stack trace: -[22-Sep-2018 11:04:19 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[22-Sep-2018 11:04:19 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[22-Sep-2018 11:04:19 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[22-Sep-2018 11:05:59 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in F:\wamp\www\Framework\Core\Framework.class.php on line 82 -[22-Sep-2018 11:05:59 PRC] PHP Stack trace: -[22-Sep-2018 11:05:59 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[22-Sep-2018 11:05:59 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[22-Sep-2018 11:05:59 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[22-Sep-2018 11:53:52 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in C:\wamp64\www\Framework\Core\Framework.class.php on line 82 -[22-Sep-2018 11:53:52 PRC] PHP Stack trace: -[22-Sep-2018 11:53:52 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[22-Sep-2018 11:53:52 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[22-Sep-2018 11:53:52 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[22-Sep-2018 11:55:05 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in C:\wamp64\www\Framework\Core\Framework.class.php on line 82 -[22-Sep-2018 11:55:05 PRC] PHP Stack trace: -[22-Sep-2018 11:55:05 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[22-Sep-2018 11:55:05 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[22-Sep-2018 11:55:05 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[23-Sep-2018 04:59:29 UTC] PHP Warning: require(C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[23-Sep-2018 04:59:29 UTC] PHP Stack trace: -[23-Sep-2018 04:59:29 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[23-Sep-2018 04:59:29 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[23-Sep-2018 04:59:29 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[23-Sep-2018 04:59:29 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 04:59:29 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 04:59:29 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[23-Sep-2018 04:59:29 UTC] PHP Stack trace: -[23-Sep-2018 04:59:29 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[23-Sep-2018 04:59:29 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[23-Sep-2018 04:59:29 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[23-Sep-2018 04:59:29 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 04:59:29 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 14:49:39 UTC] PHP Warning: require(C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[23-Sep-2018 14:49:39 UTC] PHP Stack trace: -[23-Sep-2018 14:49:39 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[23-Sep-2018 14:49:39 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[23-Sep-2018 14:49:39 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[23-Sep-2018 14:49:39 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 14:49:39 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 14:49:39 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[23-Sep-2018 14:49:39 UTC] PHP Stack trace: -[23-Sep-2018 14:49:39 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[23-Sep-2018 14:49:39 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[23-Sep-2018 14:49:39 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[23-Sep-2018 14:49:39 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 14:49:39 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 14:51:55 UTC] PHP Warning: require(C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[23-Sep-2018 14:51:55 UTC] PHP Stack trace: -[23-Sep-2018 14:51:55 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[23-Sep-2018 14:51:55 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[23-Sep-2018 14:51:55 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[23-Sep-2018 14:51:55 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 14:51:55 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 14:51:55 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[23-Sep-2018 14:51:55 UTC] PHP Stack trace: -[23-Sep-2018 14:51:55 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[23-Sep-2018 14:51:55 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[23-Sep-2018 14:51:55 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[23-Sep-2018 14:51:55 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[23-Sep-2018 14:51:55 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[25-Sep-2018 18:46:29 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in C:\wamp64\www\Framework\Core\Framework.class.php on line 82 -[25-Sep-2018 18:46:29 PRC] PHP Stack trace: -[25-Sep-2018 18:46:29 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 18:46:29 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 18:46:29 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 18:46:38 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in C:\wamp64\www\Framework\Core\Framework.class.php on line 82 -[25-Sep-2018 18:46:38 PRC] PHP Stack trace: -[25-Sep-2018 18:46:38 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 18:46:38 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 18:46:38 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 18:46:39 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in C:\wamp64\www\Framework\Core\Framework.class.php on line 82 -[25-Sep-2018 18:46:39 PRC] PHP Stack trace: -[25-Sep-2018 18:46:39 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 18:46:39 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 18:46:39 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 18:46:40 PRC] PHP Fatal error: Call to undefined method AdminController::newAction() in C:\wamp64\www\Framework\Core\Framework.class.php on line 82 -[25-Sep-2018 18:46:40 PRC] PHP Stack trace: -[25-Sep-2018 18:46:40 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 18:46:40 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 18:46:40 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:39:05 PRC] PHP Warning: mkdir(): No such file or directory in C:\wamp64\www\Framework\Lib\UploadLib.class.php on line 83 -[25-Sep-2018 23:39:05 PRC] PHP Stack trace: -[25-Sep-2018 23:39:05 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 23:39:05 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 23:39:05 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:39:05 PRC] PHP 4. ArtController->arteditAction() C:\wamp64\www\Framework\Core\Framework.class.php:82 -[25-Sep-2018 23:39:05 PRC] PHP 5. UploadLib->upload() C:\wamp64\www\Application\Controller\Admin\ArtController.class.php:100 -[25-Sep-2018 23:39:05 PRC] PHP 6. mkdir() C:\wamp64\www\Framework\Lib\UploadLib.class.php:83 -[25-Sep-2018 23:39:05 PRC] PHP Warning: move_uploaded_file(./Public/uploads/\2018-09-25\5baa56998cf2d0.60922532.jpg): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Lib\UploadLib.class.php on line 88 -[25-Sep-2018 23:39:05 PRC] PHP Stack trace: -[25-Sep-2018 23:39:05 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 23:39:05 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 23:39:05 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:39:05 PRC] PHP 4. ArtController->arteditAction() C:\wamp64\www\Framework\Core\Framework.class.php:82 -[25-Sep-2018 23:39:05 PRC] PHP 5. UploadLib->upload() C:\wamp64\www\Application\Controller\Admin\ArtController.class.php:100 -[25-Sep-2018 23:39:05 PRC] PHP 6. move_uploaded_file() C:\wamp64\www\Framework\Lib\UploadLib.class.php:88 -[25-Sep-2018 23:39:05 PRC] PHP Warning: move_uploaded_file(): Unable to move 'C:\wamp64\tmp\php6E02.tmp' to './Public/uploads/\2018-09-25\5baa56998cf2d0.60922532.jpg' in C:\wamp64\www\Framework\Lib\UploadLib.class.php on line 88 -[25-Sep-2018 23:39:05 PRC] PHP Stack trace: -[25-Sep-2018 23:39:05 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 23:39:05 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 23:39:05 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:39:05 PRC] PHP 4. ArtController->arteditAction() C:\wamp64\www\Framework\Core\Framework.class.php:82 -[25-Sep-2018 23:39:05 PRC] PHP 5. UploadLib->upload() C:\wamp64\www\Application\Controller\Admin\ArtController.class.php:100 -[25-Sep-2018 23:39:05 PRC] PHP 6. move_uploaded_file() C:\wamp64\www\Framework\Lib\UploadLib.class.php:88 -[25-Sep-2018 23:39:45 PRC] PHP Warning: mkdir(): No such file or directory in C:\wamp64\www\Framework\Lib\UploadLib.class.php on line 83 -[25-Sep-2018 23:39:45 PRC] PHP Stack trace: -[25-Sep-2018 23:39:45 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 23:39:45 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 23:39:45 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:39:45 PRC] PHP 4. ArtController->arteditAction() C:\wamp64\www\Framework\Core\Framework.class.php:82 -[25-Sep-2018 23:39:45 PRC] PHP 5. UploadLib->upload() C:\wamp64\www\Application\Controller\Admin\ArtController.class.php:100 -[25-Sep-2018 23:39:45 PRC] PHP 6. mkdir() C:\wamp64\www\Framework\Lib\UploadLib.class.php:83 -[25-Sep-2018 23:39:45 PRC] PHP Warning: move_uploaded_file(./Public/uploads/\2018-09-25\5baa56c1d19cf6.74248615.jpg): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Lib\UploadLib.class.php on line 88 -[25-Sep-2018 23:39:45 PRC] PHP Stack trace: -[25-Sep-2018 23:39:45 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 23:39:45 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 23:39:45 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:39:45 PRC] PHP 4. ArtController->arteditAction() C:\wamp64\www\Framework\Core\Framework.class.php:82 -[25-Sep-2018 23:39:45 PRC] PHP 5. UploadLib->upload() C:\wamp64\www\Application\Controller\Admin\ArtController.class.php:100 -[25-Sep-2018 23:39:45 PRC] PHP 6. move_uploaded_file() C:\wamp64\www\Framework\Lib\UploadLib.class.php:88 -[25-Sep-2018 23:39:45 PRC] PHP Warning: move_uploaded_file(): Unable to move 'C:\wamp64\tmp\phpB5D.tmp' to './Public/uploads/\2018-09-25\5baa56c1d19cf6.74248615.jpg' in C:\wamp64\www\Framework\Lib\UploadLib.class.php on line 88 -[25-Sep-2018 23:39:45 PRC] PHP Stack trace: -[25-Sep-2018 23:39:45 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 23:39:45 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 23:39:45 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:39:45 PRC] PHP 4. ArtController->arteditAction() C:\wamp64\www\Framework\Core\Framework.class.php:82 -[25-Sep-2018 23:39:45 PRC] PHP 5. UploadLib->upload() C:\wamp64\www\Application\Controller\Admin\ArtController.class.php:100 -[25-Sep-2018 23:39:45 PRC] PHP 6. move_uploaded_file() C:\wamp64\www\Framework\Lib\UploadLib.class.php:88 -[25-Sep-2018 23:40:26 PRC] PHP Warning: mkdir(): No such file or directory in C:\wamp64\www\Framework\Lib\UploadLib.class.php on line 83 -[25-Sep-2018 23:40:26 PRC] PHP Stack trace: -[25-Sep-2018 23:40:26 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 23:40:26 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 23:40:26 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:40:26 PRC] PHP 4. ArtController->artaddAction() C:\wamp64\www\Framework\Core\Framework.class.php:82 -[25-Sep-2018 23:40:26 PRC] PHP 5. UploadLib->upload() C:\wamp64\www\Application\Controller\Admin\ArtController.class.php:48 -[25-Sep-2018 23:40:26 PRC] PHP 6. mkdir() C:\wamp64\www\Framework\Lib\UploadLib.class.php:83 -[25-Sep-2018 23:40:26 PRC] PHP Warning: move_uploaded_file(./Public/uploads/\2018-09-25\5baa56ea316551.97607841.png): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Lib\UploadLib.class.php on line 88 -[25-Sep-2018 23:40:26 PRC] PHP Stack trace: -[25-Sep-2018 23:40:26 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 23:40:26 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 23:40:26 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:40:26 PRC] PHP 4. ArtController->artaddAction() C:\wamp64\www\Framework\Core\Framework.class.php:82 -[25-Sep-2018 23:40:26 PRC] PHP 5. UploadLib->upload() C:\wamp64\www\Application\Controller\Admin\ArtController.class.php:48 -[25-Sep-2018 23:40:26 PRC] PHP 6. move_uploaded_file() C:\wamp64\www\Framework\Lib\UploadLib.class.php:88 -[25-Sep-2018 23:40:26 PRC] PHP Warning: move_uploaded_file(): Unable to move 'C:\wamp64\tmp\phpA8F5.tmp' to './Public/uploads/\2018-09-25\5baa56ea316551.97607841.png' in C:\wamp64\www\Framework\Lib\UploadLib.class.php on line 88 -[25-Sep-2018 23:40:26 PRC] PHP Stack trace: -[25-Sep-2018 23:40:26 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[25-Sep-2018 23:40:26 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[25-Sep-2018 23:40:26 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[25-Sep-2018 23:40:26 PRC] PHP 4. ArtController->artaddAction() C:\wamp64\www\Framework\Core\Framework.class.php:82 -[25-Sep-2018 23:40:26 PRC] PHP 5. UploadLib->upload() C:\wamp64\www\Application\Controller\Admin\ArtController.class.php:48 -[25-Sep-2018 23:40:26 PRC] PHP 6. move_uploaded_file() C:\wamp64\www\Framework\Lib\UploadLib.class.php:88 -[26-Sep-2018 13:05:54 PRC] PHP Fatal error: Call to undefined function cut_str() in F:\wamp\www\Application\View\Home\list1.html on line 79 -[26-Sep-2018 13:05:54 PRC] PHP Stack trace: -[26-Sep-2018 13:05:54 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:05:54 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:05:54 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:05:54 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:05:54 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:64 -[26-Sep-2018 13:05:59 PRC] PHP Fatal error: Call to undefined function cut_str() in F:\wamp\www\Application\View\Home\list1.html on line 79 -[26-Sep-2018 13:05:59 PRC] PHP Stack trace: -[26-Sep-2018 13:05:59 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:05:59 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:05:59 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:05:59 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:05:59 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:64 -[26-Sep-2018 13:06:26 PRC] PHP Fatal error: Call to undefined function cut_str() in F:\wamp\www\Application\View\Home\list1.html on line 79 -[26-Sep-2018 13:06:26 PRC] PHP Stack trace: -[26-Sep-2018 13:06:26 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:06:26 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:06:26 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:06:26 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:06:26 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:64 -[26-Sep-2018 13:06:27 PRC] PHP Fatal error: Call to undefined function cut_str() in F:\wamp\www\Application\View\Home\list1.html on line 79 -[26-Sep-2018 13:06:27 PRC] PHP Stack trace: -[26-Sep-2018 13:06:27 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:06:27 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:06:27 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:06:27 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:06:27 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:64 -[26-Sep-2018 13:06:28 PRC] PHP Fatal error: Call to undefined function cut_str() in F:\wamp\www\Application\View\Home\list1.html on line 79 -[26-Sep-2018 13:06:28 PRC] PHP Stack trace: -[26-Sep-2018 13:06:28 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:06:28 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:06:28 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:06:28 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:06:28 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:64 -[26-Sep-2018 13:06:34 PRC] PHP Fatal error: Call to undefined function cut_str() in F:\wamp\www\Application\View\Home\list1.html on line 79 -[26-Sep-2018 13:06:34 PRC] PHP Stack trace: -[26-Sep-2018 13:06:34 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:06:34 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:06:34 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:06:34 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:06:34 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:64 -[26-Sep-2018 13:06:38 PRC] PHP Fatal error: Call to undefined function cut_str() in F:\wamp\www\Application\View\Home\list1.html on line 79 -[26-Sep-2018 13:06:38 PRC] PHP Stack trace: -[26-Sep-2018 13:06:38 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:06:38 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:06:38 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:06:38 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:06:38 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:64 -[26-Sep-2018 13:06:44 PRC] PHP Fatal error: Call to undefined function cut_str() in F:\wamp\www\Application\View\Home\list1.html on line 79 -[26-Sep-2018 13:06:44 PRC] PHP Stack trace: -[26-Sep-2018 13:06:44 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:06:44 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:06:44 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:06:44 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:06:44 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:64 -[26-Sep-2018 13:06:48 PRC] PHP Fatal error: Call to undefined function cut_str() in F:\wamp\www\Application\View\Home\list1.html on line 79 -[26-Sep-2018 13:06:48 PRC] PHP Stack trace: -[26-Sep-2018 13:06:48 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:06:48 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:06:48 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:06:48 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:06:48 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:64 -[26-Sep-2018 13:14:19 PRC] PHP Parse error: syntax error, unexpected '<' in F:\wamp\www\Application\View\Home\list1.html on line 78 -[26-Sep-2018 13:14:19 PRC] PHP Stack trace: -[26-Sep-2018 13:14:19 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:14:19 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:14:19 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:14:19 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:14:21 PRC] PHP Parse error: syntax error, unexpected '<' in F:\wamp\www\Application\View\Home\list1.html on line 78 -[26-Sep-2018 13:14:21 PRC] PHP Stack trace: -[26-Sep-2018 13:14:21 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:14:21 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:14:21 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:14:21 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:14:21 PRC] PHP Parse error: syntax error, unexpected '<' in F:\wamp\www\Application\View\Home\list1.html on line 78 -[26-Sep-2018 13:14:21 PRC] PHP Stack trace: -[26-Sep-2018 13:14:21 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:14:21 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:14:21 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:14:21 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:14:22 PRC] PHP Parse error: syntax error, unexpected '<' in F:\wamp\www\Application\View\Home\list1.html on line 78 -[26-Sep-2018 13:14:22 PRC] PHP Stack trace: -[26-Sep-2018 13:14:22 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:14:22 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:14:22 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:14:22 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:14:28 PRC] PHP Parse error: syntax error, unexpected '<' in F:\wamp\www\Application\View\Home\list1.html on line 78 -[26-Sep-2018 13:14:28 PRC] PHP Stack trace: -[26-Sep-2018 13:14:28 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:14:28 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:14:28 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:14:28 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:14:47 PRC] PHP Parse error: syntax error, unexpected '<' in F:\wamp\www\Application\View\Home\list1.html on line 78 -[26-Sep-2018 13:14:47 PRC] PHP Stack trace: -[26-Sep-2018 13:14:47 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:14:47 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:14:47 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:14:47 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Sep-2018 13:14:48 PRC] PHP Parse error: syntax error, unexpected '<' in F:\wamp\www\Application\View\Home\list1.html on line 78 -[26-Sep-2018 13:14:48 PRC] PHP Stack trace: -[26-Sep-2018 13:14:48 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Sep-2018 13:14:48 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Sep-2018 13:14:48 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Sep-2018 13:14:48 PRC] PHP 4. HomeController->listAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[15-Oct-2018 17:26:56 PRC] PHP Fatal error: Call to undefined method HomeController::Action() in C:\wamp64\www\Framework\Core\Framework.class.php on line 82 -[15-Oct-2018 17:26:56 PRC] PHP Stack trace: -[15-Oct-2018 17:26:56 PRC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[15-Oct-2018 17:26:56 PRC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[15-Oct-2018 17:26:56 PRC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[16-Oct-2018 10:39:29 UTC] PHP Warning: require(C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[16-Oct-2018 10:39:29 UTC] PHP Stack trace: -[16-Oct-2018 10:39:29 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[16-Oct-2018 10:39:29 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[16-Oct-2018 10:39:29 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[16-Oct-2018 10:39:29 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 10:39:29 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 10:39:29 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[16-Oct-2018 10:39:29 UTC] PHP Stack trace: -[16-Oct-2018 10:39:29 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[16-Oct-2018 10:39:29 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[16-Oct-2018 10:39:29 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[16-Oct-2018 10:39:29 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 10:39:29 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 12:21:03 UTC] PHP Warning: require(C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[16-Oct-2018 12:21:03 UTC] PHP Stack trace: -[16-Oct-2018 12:21:03 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[16-Oct-2018 12:21:03 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[16-Oct-2018 12:21:03 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[16-Oct-2018 12:21:03 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 12:21:03 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 12:21:03 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[16-Oct-2018 12:21:03 UTC] PHP Stack trace: -[16-Oct-2018 12:21:03 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[16-Oct-2018 12:21:03 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[16-Oct-2018 12:21:03 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[16-Oct-2018 12:21:03 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 12:21:03 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 12:21:20 UTC] PHP Warning: require(C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[16-Oct-2018 12:21:20 UTC] PHP Stack trace: -[16-Oct-2018 12:21:20 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[16-Oct-2018 12:21:20 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[16-Oct-2018 12:21:20 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[16-Oct-2018 12:21:20 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 12:21:20 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 12:21:20 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[16-Oct-2018 12:21:20 UTC] PHP Stack trace: -[16-Oct-2018 12:21:20 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[16-Oct-2018 12:21:20 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[16-Oct-2018 12:21:20 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[16-Oct-2018 12:21:20 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[16-Oct-2018 12:21:20 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 13:40:58 UTC] PHP Warning: require(C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[14-Nov-2018 13:40:58 UTC] PHP Stack trace: -[14-Nov-2018 13:40:58 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[14-Nov-2018 13:40:58 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[14-Nov-2018 13:40:58 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[14-Nov-2018 13:40:58 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 13:40:58 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 13:40:58 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[14-Nov-2018 13:40:58 UTC] PHP Stack trace: -[14-Nov-2018 13:40:58 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[14-Nov-2018 13:40:58 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[14-Nov-2018 13:40:58 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[14-Nov-2018 13:40:58 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 13:40:58 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 13:41:17 UTC] PHP Warning: require(C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[14-Nov-2018 13:41:17 UTC] PHP Stack trace: -[14-Nov-2018 13:41:17 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[14-Nov-2018 13:41:17 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[14-Nov-2018 13:41:17 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[14-Nov-2018 13:41:17 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 13:41:17 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 13:41:17 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[14-Nov-2018 13:41:17 UTC] PHP Stack trace: -[14-Nov-2018 13:41:17 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[14-Nov-2018 13:41:17 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[14-Nov-2018 13:41:17 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[14-Nov-2018 13:41:17 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 13:41:17 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 20:18:26 UTC] PHP Warning: require(C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php): failed to open stream: No such file or directory in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[14-Nov-2018 20:18:26 UTC] PHP Stack trace: -[14-Nov-2018 20:18:26 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[14-Nov-2018 20:18:26 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[14-Nov-2018 20:18:26 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[14-Nov-2018 20:18:26 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 20:18:26 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 20:18:26 UTC] PHP Fatal error: require(): Failed opening required 'C:\wamp64\www\Application\Controller\Home\4e5e5d7364f443e28fbf0d3ae744a59aController.class.php' (include_path='.;C:\php\pear') in C:\wamp64\www\Framework\Core\Framework.class.php on line 66 -[14-Nov-2018 20:18:26 UTC] PHP Stack trace: -[14-Nov-2018 20:18:26 UTC] PHP 1. {main}() C:\wamp64\www\index.php:0 -[14-Nov-2018 20:18:26 UTC] PHP 2. Framework::run() C:\wamp64\www\index.php:4 -[14-Nov-2018 20:18:26 UTC] PHP 3. Framework::initDispatch() C:\wamp64\www\Framework\Core\Framework.class.php:17 -[14-Nov-2018 20:18:26 UTC] PHP 4. spl_autoload_call() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[14-Nov-2018 20:18:26 UTC] PHP 5. Framework::autoLoad() C:\wamp64\www\Framework\Core\Framework.class.php:81 -[26-Nov-2018 23:23:37 PRC] PHP Notice: Undefined variable: home in F:\wamp\www\Application\View\Home\article.html on line 46 -[26-Nov-2018 23:23:37 PRC] PHP Stack trace: -[26-Nov-2018 23:23:37 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:23:37 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:23:37 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:23:37 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:23:37 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:88 -[26-Nov-2018 23:23:37 PRC] PHP Notice: Undefined variable: home in F:\wamp\www\Application\View\Home\article.html on line 47 -[26-Nov-2018 23:23:37 PRC] PHP Stack trace: -[26-Nov-2018 23:23:37 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:23:37 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:23:37 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:23:37 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:23:37 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:88 -[26-Nov-2018 23:24:34 PRC] PHP Notice: Undefined variable: home in F:\wamp\www\Application\View\Home\article.html on line 48 -[26-Nov-2018 23:24:34 PRC] PHP Stack trace: -[26-Nov-2018 23:24:34 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:24:34 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:24:34 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:24:34 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:24:34 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:88 -[26-Nov-2018 23:24:34 PRC] PHP Notice: Undefined variable: home in F:\wamp\www\Application\View\Home\article.html on line 49 -[26-Nov-2018 23:24:34 PRC] PHP Stack trace: -[26-Nov-2018 23:24:34 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:24:34 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:24:34 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:24:34 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:24:34 PRC] PHP 5. require() F:\wamp\www\Application\Controller\Home\HomeController.class.php:88 -[26-Nov-2018 23:54:56 PRC] PHP Parse error: syntax error, unexpected '?' in F:\wamp\www\Application\View\Home\article.html on line 45 -[26-Nov-2018 23:54:56 PRC] PHP Stack trace: -[26-Nov-2018 23:54:56 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:54:56 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:54:56 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:54:56 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:54:58 PRC] PHP Parse error: syntax error, unexpected '?' in F:\wamp\www\Application\View\Home\article.html on line 45 -[26-Nov-2018 23:54:58 PRC] PHP Stack trace: -[26-Nov-2018 23:54:58 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:54:58 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:54:58 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:54:58 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:55:41 PRC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in F:\wamp\www\Application\View\Home\article.html on line 45 -[26-Nov-2018 23:55:41 PRC] PHP Stack trace: -[26-Nov-2018 23:55:41 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:55:41 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:55:41 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:55:41 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:55:42 PRC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in F:\wamp\www\Application\View\Home\article.html on line 45 -[26-Nov-2018 23:55:42 PRC] PHP Stack trace: -[26-Nov-2018 23:55:42 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:55:42 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:55:42 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:55:42 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:55:47 PRC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in F:\wamp\www\Application\View\Home\article.html on line 45 -[26-Nov-2018 23:55:47 PRC] PHP Stack trace: -[26-Nov-2018 23:55:47 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:55:47 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:55:47 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:55:47 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:56:51 PRC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in F:\wamp\www\Application\View\Home\article.html on line 45 -[26-Nov-2018 23:56:51 PRC] PHP Stack trace: -[26-Nov-2018 23:56:51 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:56:51 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:56:51 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:56:51 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:57:54 PRC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in F:\wamp\www\Application\View\Home\article.html on line 45 -[26-Nov-2018 23:57:54 PRC] PHP Stack trace: -[26-Nov-2018 23:57:54 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:57:54 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:57:54 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:57:54 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:57:54 PRC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in F:\wamp\www\Application\View\Home\article.html on line 45 -[26-Nov-2018 23:57:54 PRC] PHP Stack trace: -[26-Nov-2018 23:57:54 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:57:54 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:57:54 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:57:54 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 -[26-Nov-2018 23:58:00 PRC] PHP Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in F:\wamp\www\Application\View\Home\article.html on line 45 -[26-Nov-2018 23:58:00 PRC] PHP Stack trace: -[26-Nov-2018 23:58:00 PRC] PHP 1. {main}() F:\wamp\www\index.php:0 -[26-Nov-2018 23:58:00 PRC] PHP 2. Framework::run() F:\wamp\www\index.php:4 -[26-Nov-2018 23:58:00 PRC] PHP 3. Framework::initDispatch() F:\wamp\www\Framework\Core\Framework.class.php:17 -[26-Nov-2018 23:58:00 PRC] PHP 4. HomeController->artAction() F:\wamp\www\Framework\Core\Framework.class.php:82 diff --git a/Framework/Core/Model.class.php b/Framework/Core/Model.class.php index 5ffaaeb..3307272 100644 --- a/Framework/Core/Model.class.php +++ b/Framework/Core/Model.class.php @@ -21,7 +21,7 @@ private function getTable(){ //获得主键字段 private function getPrimaryKey($table){ $rs=$this->db->query("desc `{$table}`"); - while ($rows=mysql_fetch_assoc($rs)) { + while ($rows=mysqli_fetch_assoc($rs)) { # code... if ($rows['Key']=='PRI') { # code... diff --git a/Framework/Core/MySQLDB.class.php b/Framework/Core/MySQLDB.class.php index 485cf96..5a66d1f 100644 --- a/Framework/Core/MySQLDB.class.php +++ b/Framework/Core/MySQLDB.class.php @@ -20,7 +20,7 @@ private function initParam($config) { } //连接数据库 private function connect() { - $this->link=@mysql_connect("{$this->host}:{$this->port}",$this->user,$this->pwd) or die('数据库连接失败'); + $this->link=mysqli_connect("{$this->host}:{$this->port}",$this->user,$this->pwd,$this->dbname) or die('数据库连接失败'); } //设置字符编码 private function setCharset() { @@ -47,12 +47,12 @@ function mLog($log){ *如果是数据操作语句,成功返回true,失败返回false; */ public function query($sql) { - if(!$result=mysql_query($sql,$this->link)){ + if(!$result=mysqli_query($this->link,$sql)){ //mLog($sql."\n".mysql_error()); if($GLOBALS['config']['app']['app_debug']){//开发模式 echo 'SQL语句执行失败
'; - echo '错误编号:'.mysql_errno(),'
'; - echo '错误信息:'.mysql_error(),'
'; + echo '错误编号:'.mysqli_errno(),'
'; + echo '错误信息:'.mysqli_error(),'
'; echo '错误的SQL语句',$sql,'
'; exit; } @@ -97,7 +97,7 @@ public function fetchAll($sql,$fetch_type='assoc') { $fetch_types=array('assoc','row','array'); if(!in_array($fetch_type,$fetch_types)) $fetch_type='assoc'; - $fetch_fun='mysql_fetch_'.$fetch_type; + $fetch_fun='mysqli_fetch_'.$fetch_type; $array=array(); while($rows=$fetch_fun($rs)){ $array[]=$rows;