แจกระบบจัดการเอกสารออนไลน์ โดยใช้ Codeigniter Framework [PHP+MySQL]

ระบบเอกสาร ที่ผมได้เขียนขึ้นมานั้น ผมได้ใช้ php framework ของ Codeigniter 3 ในการเขียนขึ้นมา ซึ่งผมเพิ่งเริ่มเขียน Codeigniter framework มาได้ไม่นาน ซึ่งเดิมทีผมตั้งใจจะเริ่มต้นกับ Laravel framework แต่ก็ตัดสินใจเลือก Codeigniter ก่อน เนื่องจากมีหลายๆความคิดเห็นบนอินเตอร์เน็ตว่า Codeigniter เขียนง่าย สำหรับระบบเอกสารที่ผมเอามาแจกนั้นเป็นระบบง่ายๆ ไม่ซับซ้อนมากนักเหมาะสำหรับคนที่เพิ่มเริ่มหัดเขียน Codeigniter นำไปศึกษา โดยผมตั้งใจไว้ว่า พยายามเผยแพร่ Source code ที่คนอ่านแล้วเข้าใจไม่ยาก และระบบเอกสารผมได้นำ AdminLTE2 มาเป็นหน้าตาเว็บไซต์ซึ่งเพิ่งเริ่มใช้เวอร์ชั่นนี้เหมือนกันครับ และสุดท้ายสุดถ้าใครเกิดปัญหาตรงไหน สอบถามได้ทาง Comment ด้านล่างนี้นะครับ

สำหรับ ระบบเอกสาร ผมได้ออกแบบฐานข้อมูลโดยมี ทั้งหมด 3 ตาราง คือ users, categories, document โดย users เก็บข้อมูลผู้ใช้, categories เก็บข้อมูลหมวดหมู่เอกสาร, document เก็บเอกสาร
ความสามารถของระบบเอกสาร ecdocument มีดังนี้
1. สามารเพิ่ม แก้ไข และลบ ข้อมูลหมวดหมู่เอกสาร, เอกสาร ได้
2. ไฟล์เอกสารที่อัพโหลดในระบบเอกสารรองรับเฉพาะ ไฟล์นามสกุล PDF เท่านั้น
3. สามารถตรวจสอบการเข้าถึงการ จัดการระบบเอกสารได้

ซึ่งความสามารถข้างต้นที่กล่าวมานี้ ผู้ใช้งานสามารถนำไปต่อยอดได้ครับ

ถ้าหากใครสนใจต้องการทดสอบระบบ สามารถเข้าได้ที่ ลิงค์ Demo ด้านล่างครับ
Demo site

Demo Admin

username : tawatsak
password : 1234

สำหรับ source code สามารถดาวน์โหลดได้ที่ลิงค์ด้านล่างครับ โดยจะมีไฟล์ *.sql อยู่ข้างในโฟล์เดอร์ด้วยครับ

************
การติดตั้ง
************

1. แก้ไขไฟล์ application/config/database.php (เปลี่ยนข้อมูลฐานข้อมูล)
2. แก้ไขไฟล์ application/config/config.php
บรรทัดที่ 20 เปลี่ยน URL เว็บไซต์ให้ตรงกับข้อมูลของคุณเช่นเว็บ https://www.itoffside.com/ เป็นต้น
3. ตั้งค่ากำหนดสิทธิ์อัพโหลดไฟล์ที่โฟล์เดอร์ session และ uploads ให้ทุกคนสามารถอัพโหลดได้ (CHMOD 777)

*******
เงื่อนไขการใช้งาน
*******

ทุกคนมีสิทธิ์ในการแก้ไขไฟล์และใช้งานได้ พร้อมทั้งทำซ้ำแลแจกจ่ายไปยังแหล่งต่างๆได้
แต่**ห้ามนำไปจำหน่ายโดยเด็ดขาด

*********
Special Thanks
*********
ขอขอบคุณทุกๆท่านที่ทำให้นักพัฒนามีแรงบรรดาลใจในการพัฒนาต่อไปโดยการ บอกต่อ(Share) หรือท่านใดใจดีก็บริจาคให้กับทางผู้พัฒนาได้ทุกทาง เช่น ธนาคาร, เพลย์พาล เป็นต้น
ธวัชศักดิ์ แตงเอี่ยม
ขอบคุณครับ

รูปภาพบางส่วนจากหน้าจอระบบ ครับ

itoffside.com

ecdocument-02

ecdocument-03

ecdocument-04

ecdocument-05

You May Also Like

About the Author: Tawatsak

โปรแกรมเมอร์ ติดต่อ : itoffside@hotmail.com
Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

187 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
ole
ole
8 years ago

มีวิที่ติดตั้งไม ครับ

ole
ole
Reply to  Tawatsak
8 years ago

คือผมติดตั้งลงใน xampp ครับ

ole
ole
Reply to  Tawatsak
8 years ago

ได้แล้วครับ ขอบใจ นะครับ

ชนกสุดา
ชนกสุดา
Reply to  ole
6 years ago

ล็อนอินไม่ได้เลยทำไงค่ะ

YO
YO
Reply to  Tawatsak
6 years ago

แล้วถ้าผมลง AppServ 2.5.10 ใช้ได้มั้ยครับ

joe
joe
Reply to  ole
7 years ago

โหลดไม่ได้เลยครับ ต้องทำยังไง กดไลทไปแล้วก็ไม่เห็นที่โหลด ช่วยส่งลิ้งให้ได้มั้ยครับ

BUNCHA
BUNCHA
Reply to  ole
6 years ago

Thank You

popsook
8 years ago

ติดตั้งบน hosting แล้ว ใช้ได้ปกติ ผมไปหน้า Admin ไม่ได้ครับ

popsook
8 years ago

เกิดปัญหาครับ ผม up ขึ้น hosting มาปกติ ไม่ให้จัดการอะไร
http://www.XXXX.com//ecdocument/user/login
แล้วพอจะเข้า หน้า admin มันบอกว่า
No input file specified. เป็นที่อะไรครับ

popsook
Reply to  popsook
8 years ago

ผมสร้าง โฟลเดอร์ ci_sessions
และเพิ่มตารางในฐานข้อมูล
CREATE TABLE IF NOT EXISTS `ci_sessions` (
`id` varchar(40) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) unsigned NOT NULL DEFAULT ‘0’,
`data` blob NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
เข้าไปเอง
มันผลต่อเหตุการณ์นี้ไหมครับ

sakhorn
sakhorn
Reply to  Tawatsak
4 years ago

สอบถามอาจานย์คับ
ผมยากให้ upload file ทุกชนิด แก่ไขตรงไหนได้ครับ อาจารย์

nithiwar
nithiwar
8 years ago

มีวิธีติดตั้งแบบ step by step มั้ยครับ พอดี งงกับการติดตั้งอ่ะครับ รบกวนด้วยครับ อยากเอามาใช้กับที่ รร

ืnarkorn
ืnarkorn
Reply to  nithiwar
7 years ago

ผมก็ติดด้วยนะครับ ว่างแล้วการ Add database ยังไงนะครับ

nithiwar
nithiwar
8 years ago

คำค้น SQL:

/*!40101 SET NAMES utf8mb4 */;

MySQL แสดง: เอกสารอ้างอิง

#1115 – Unknown character set: ‘utf8mb4’

import database ไม่ได้อ่ะครับ

master
master
8 years ago

A PHP Error was encountered

Severity: Runtime Notice

Message: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Asia/Krasnoyarsk’ for ‘7.0/no DST’ instead

Filename: document/mainpage.php

Line Number: 58

Backtrace:

File: C:\AppServ\www\ecdoc_zone6\application\views\document\mainpage.php
Line: 58
Function: strtotime

upload เอกสารแล้วขึ้นข้อความแบบนี้

File: C:\AppServ\www\ecdoc_zone6\application\controllers\Document.php
Line: 34
Function: view

File: C:\AppServ\www\ecdoc_zone6\index.php
Line: 292
Function: require_once

arthitkh
arthitkh
Reply to  master
7 years ago

เปิดไฟล์ php.ini ให้เป็นเพิ่ม
;date.timezone =
date.timezone = “Asia/Bangkok”
แล้ว save ค่อย รีสตาร์ท apache ดู ค่อยเช็ค phpinfo ดูน่ะครับ

Fook
Fook
Reply to  arthitkh
5 years ago

ทำไมถึงต้องเปลี่ยนป็นโซนไทยครับ ขอเป็นคามรู้หน่อยครับ

palm
palm
Reply to  arthitkh
4 years ago

ไฟล์ดังกล่าวอยู่ folder ไหนครับผมหาไม่เจอ

palm
palm
Reply to  palm
4 years ago

ของผมมันโชว์แบบนี้ครับ

A PHP Error was encountered

Severity: Warning

Message: strtotime(): It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone ‘UTC’ for now, but please set date.timezone to select your timezone.

Filename: document/listview.php

Line Number: 96

Backtrace:

File: C:\AppServ\www\E-Doc\application\views\document\listview.php
Line: 96
Function: strtotime

File: C:\AppServ\www\E-Doc\application\controllers\Document.php
Line: 165
Function: view

File: C:\AppServ\www\E-Doc\index.php
Line: 292
Function: require_once

มือใหม่
มือใหม่
8 years ago

upload ขึ้น Server จริง มันขึ้นแบบนี้แก้ไขยังงัยครับ

A PHP Error was encountered

Severity: Warning

Message: mkdir(): Invalid path

Filename: drivers/Session_files_driver.php

Line Number: 117

Backtrace:

File: /home/krukrit/domains/krukrit.com/public_html/ecdoc_online/application/controllers/Document.php
Line: 10
Function: __construct

File: /home/krukrit/domains/krukrit.com/public_html/ecdoc_online/index.php
Line: 292
Function: require_once

An uncaught Exception was encountered

Type: Exception

Message: Session: Configured save path ” is not a directory, doesn’t exist or cannot be created.

Filename: /home/krukrit/domains/krukrit.com/public_html/ecdoc_online/system/libraries/Session/drivers/Session_files_driver.php

Line Number: 119

Backtrace:

File: /home/krukrit/domains/krukrit.com/public_html/ecdoc_online/application/controllers/Document.php
Line: 10
Function: __construct

File: /home/krukrit/domains/krukrit.com/public_html/ecdoc_online/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: file_exists(): open_basedir restriction in effect. File(c00209251b99040564eaef2462c4a1d13cde54e3) is not within the allowed path(s): (/home/krukrit/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/)

Filename: drivers/Session_files_driver.php

Line Number: 154

Backtrace:

A PHP Error was encountered

Severity: Warning

Message: fopen(): open_basedir restriction in effect. File(c00209251b99040564eaef2462c4a1d13cde54e3) is not within the allowed path(s): (/home/krukrit/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/)

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

A PHP Error was encountered

Severity: Warning

Message: fopen(c00209251b99040564eaef2462c4a1d13cde54e3): failed to open stream: Operation not permitted

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

joke
joke
8 years ago

กดข้า demo กะ admin ไม่ได้

ืnew
ืnew
8 years ago

สวัสดีครับผมสอบถามครับ
1.สอบถามเกี่ยวกับการเรียงลำดับ Sort ตารางข้อมูลครับผม ต้องแก้ไข Script ในส่วนไหนจึงจะสมารถกดให้ตารางเรียงข้อมูล จากมากไปหาน้อย จากน้อยไปหามาก ในแต่ละแถวได้
2.เวลา Search หากต้องการให้ Search ทุกตาราง ต้องแก้ไขอย่างไรครับ
ขอบคุณมากครับผม

ชายคนหนึ่ง
ชายคนหนึ่ง
8 years ago

สวัสดีครับ ผมลองเอาขึ้น host จริง โอเคครับ อัพโหลดเอกสารได้

แต่นิดนึง อยากให้ทำระบบเพิ่มผู้ใช้น่าจะดีไม่น้อย เพราะหากมีแค่ User เดียว ถ้าใช้หลายๆ คนอาจจะมีปัญหาตามมาได้

au
au
8 years ago

สวัสดดีค่ะ ลองเอาไปใช้แล้ว ok ค่ะ แต่ติดปัญหาคือ
1.เวลาแก้ไขเอกสาร แล้ว upload เอกสารไปใหม่ ไม่พบว่ามีการ upload ไฟล์ใหม่ให้ ยังเป็นไฟล์เดิม
2.ไม่สามารถกด Sort ในตารางได้
3.ไม่มีหน้า add user และหน้า log out

ปูเป้
ปูเป้
Reply to  Tawatsak
8 years ago

ผมลองโหลดมาทำไมไม่มีหน้าต่าง เพิ่มข้อมูลอะครับ

ชนกสุดา
ชนกสุดา
Reply to  au
6 years ago

ล็อกอินไม่ผ่านทำไงค่ะหนูต้องเอาไปทำโปรเจจบช่วยหนูหน่อยค่ะ

wanchai
wanchai
8 years ago

ถ้า update Project แล้ว รบกวนแจ้งหน่อยนะครับ

ปูเป้
ปูเป้
8 years ago

ผมขอนำไปใช้ในเว๊บของผมัพขึ้นโฮสจริงได้ใช่ปะครับ ไม่มีลิขสิทธิ์ ใช่ปะครับ

lerkiat
lerkiat
8 years ago

อัพโหลดขึ้นโฮสต์จริง แล้ว error แบบนี้ครับ แก้ไขยังไงครับ

A PHP Error was encountered

Severity: Warning

Message: mkdir(): open_basedir restriction in effect. File() is not within the allowed path(s): (/home/chiangrung/:/tmp:/var/tmp:/usr/local/lib/php/)

Filename: drivers/Session_files_driver.php

Line Number: 117

Backtrace:

File: /home/chiangrung/domains/chiangrung.ac.th/public_html/edocument/application/controllers/Document.php
Line: 10
Function: __construct

File: /home/chiangrung/domains/chiangrung.ac.th/public_html/edocument/index.php
Line: 292
Function: require_once

An uncaught Exception was encountered

Type: Exception

Message: Session: Configured save path ” is not a directory, doesn’t exist or cannot be created.

Filename: /home/chiangrung/domains/chiangrung.ac.th/public_html/edocument/system/libraries/Session/drivers/Session_files_driver.php

Line Number: 119

Backtrace:

File: /home/chiangrung/domains/chiangrung.ac.th/public_html/edocument/application/controllers/Document.php
Line: 10
Function: __construct

File: /home/chiangrung/domains/chiangrung.ac.th/public_html/edocument/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: file_exists(): open_basedir restriction in effect. File(9dd952f319e6211440dacf1e740e46ca1db6f4f6) is not within the allowed path(s): (/home/chiangrung/:/tmp:/var/tmp:/usr/local/lib/php/)

Filename: drivers/Session_files_driver.php

Line Number: 154

Backtrace:

A PHP Error was encountered

Severity: Warning

Message: fopen(): open_basedir restriction in effect. File(9dd952f319e6211440dacf1e740e46ca1db6f4f6) is not within the allowed path(s): (/home/chiangrung/:/tmp:/var/tmp:/usr/local/lib/php/)

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

A PHP Error was encountered

Severity: Warning

Message: fopen(9dd952f319e6211440dacf1e740e46ca1db6f4f6): failed to open stream: Operation not permitted

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

lerkiat
lerkiat
8 years ago

แต่ทดสอบบน XAMP ใช้งานได้ปกติเลยครับ

lerkiat
lerkiat
Reply to  Tawatsak
8 years ago

ทำงานได้แล้วครับ เข้าไปแก้ไขไฟล์ application/config/config.php
ให้ค้นหาบรรทัด ประมาณ 358-366
เดิม
$config[‘sess_driver’] = ‘file’;
ให้เปลี่ยนเป็น
$config[‘sess_driver’] = ‘database’;
อีกบรรทัดหนึ่ง เปลี่ยนจาก
$config[‘sess_save_path’] = NULL;
เปลี่ยนเป็น
$config[‘sess_save_path’] = ‘ci_sessions’;

เมื่อแก้ไขไฟล์ config เสร็จ ก็อย่างลืม อัพโหลดขึ้นไปทับของเดิมได้เลย

และให้เข้าไปสร้างตาราง ใน phpmyadmin ด้วยคำสั่ง
CREATE TABLE IF NOT EXISTS `ci_sessions` (
`id` varchar(40) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) unsigned DEFAULT 0 NOT NULL,
`data` blob NOT NULL,
KEY `ci_sessions_timestamp` (`timestamp`)
);

คัดลอกไปวางใน SQL เลย สำหรับ MySQL นะครับ

แค่ 2 ขั้นตอนนี้ ก็สามารถแก้ไขปัญหา เหมือนที่ผมเจอได้แล้ว

ขอบคุณ คุณ benext ที่แบ่งให้ใช้งานระบบ พร้อมทั้งให้คำแนะนำอีกด้วย ขออนุโมทนาบุญด้วยครับ

king
king
Reply to  lerkiat
7 years ago

แก้วแล้ว แต่ยังขึ้นว่า

Error Number: 1146

Table ‘jormthep_edoc.ci_session’ doesn’t exist

SELECT `data` FROM `ci_session` WHERE `id` = ‘da7fbeefb2516e6c2942e4a93a9b6e06d413b994’

Filename: libraries/Session/drivers/Session_database_driver.php

Line Number: 160

ต้องแก้ไงครับ

lerkiat
lerkiat
8 years ago

เดิมที ผู้พัฒนาระบบนี้ เขาให้อัพโหลดไฟล์ได้เฉพาะ ไฟล์ที่มีนามสกุล pdf เท่านั้น
แต่ผมอยากจะให้มันอัพโหลดไฟล์ ประเภทอื่นได้ด้วย เช่น word , powr point ,excel

ผมเลยเข้าไปแก้ไขไฟล์ application/controllers/Document.php
ประมาณบรรทัดที่ 49-57 ให้เป็นประมาณนี้

$config[‘upload_path’] = ‘./uploads/’;
$config[‘allowed_types’] = ‘pdf’;
$config[‘allowed_types’] = ‘docx’;
$config[‘allowed_types’] = ‘doc’;
$config[‘allowed_types’] = ‘xlsx’;
$config[‘allowed_types’] = ‘xls’;
$config[‘allowed_types’] = ‘pptx’;
$config[‘allowed_types’] = ‘ppt’;

แก้ไขเสร็จ อัพขึ้นไปทับไฟล์เดิม ลองดูนะครับ ว่าอัพไฟล์ตามที่กำหนดได้หรือไม่

ขอบคุณ คุณ benext ที่ไม่มีลิขสิทธิ์ ลองปรับใช้ไป ลองผิดลองถูกครับ

lerkiat
lerkiat
Reply to  lerkiat
8 years ago

ผมลองอัพโหลดไฟล์ ประเภท docx , doc , xlsx , xls ดูปรากฏว่า สามารถอัพโหลดได้ครับ ส่วนไฟล์ powr point ยังไม่ได้ลองครับ ท่านใดสนใจ ลองทำดูนะครับ

Natapon S.
Natapon S.
Reply to  lerkiat
6 years ago

ผมลองเพิ่มตามคุณบอกละ The filetype you are attempting to upload is not allowed.
ไม่เข้าใจเหมือนกันคับ

Wora
Wora
Reply to  Natapon S.
6 years ago

โค้ดนี้ครับ
$config[‘upload_path’] = ‘./uploads/’;
$config[‘allowed_types’] = ‘zip|pdf|docx|doc|ppt|pptx’;

เอก
เอก
Reply to  Wora
4 years ago

ผมลงทั้ง2แบบแล้ว ไม่ได้เลยครับท่าน ใครทำได้รบกวนแนะนำหน่อยครับ

Tum
Tum
8 years ago

ผมมือใหม่มากๆ อยากทราบว่าต้องแก้ตรงไหนคับ ถึงจะ search ในแถวของ
รหัสเอกสาร ได้ด้วย ตอนนี้ search ได้แค่ในแถว ชื่อเอกสาร ขอบคุณมากครับ

al-ameen
al-ameen
8 years ago

ทำไหม โหลด ม่ได้ ครับ

al-ameen
al-ameen
Reply to  al-ameen
8 years ago

ขอลิงค์ หน่อยจะเอาไปศึกษา ทำ มินิโปรเจก

sarawut
sarawut
7 years ago

ผมต้องการสร้าง Drop Down ในการเลือกเงื่อนไขการค้นหา จากนั้นค่อยพิมพ์ Keyword ผมต้องแก้ในส่วนไหนครับ

aiSAMdek
aiSAMdek
7 years ago

ขอวิธีติดตั้งหน่อยครับ

teay
teay
7 years ago

โหลดไฟล์ไม่ได้ค่ะ แต่อยากได้แนวทางมาพัฒนารบกวนส่งเมล์ได้มั๊ยค่ะ

king
king
7 years ago

แก้ตามที่คุณ lerkiat บอกไว้ครับ แต่ขึ้น

Error Number: 1146

Table ‘jormthep_edoc.ci_session’ doesn’t exist

SELECT `data` FROM `ci_session` WHERE `id` = ‘da7fbeefb2516e6c2942e4a93a9b6e06d413b994’

Filename: libraries/Session/drivers/Session_database_driver.php

Line Number: 160

แก้อย่างไรครับ

Fon Jutamas
Fon Jutamas
Reply to  king
7 years ago

ติดที่เดียวกันเลยค่ะ

จักรี ขาวคง
จักรี ขาวคง
7 years ago

หากเข้าหน้า Admin ไม่ได้ ให้เปิดใช้โมดูล mod_rewrite ใน Apache แล้วลองเข้าหน้า Login อีกครั้ง

หากยังเข้าไม่ได้
ใน Linux ให้แก้ไขไฟล์ /etc/apache2/sites-available/000-default.conf โดยเพิ่ม

*ที่อยู่ของพาธที่โปรแกรมรันอยู่
AllowOverride All

โดยวางภายใน

*******************<< ตรงนี้

และ
แก้ไขไฟล์ /etc/apache2/apache2.conf
โดยเพิ่ม
*ที่อยู่ของพาธที่โปรแกรมรันอยู่
AllowOverride All

หากยังเข้าใช้งาน Admin ไม่ได้แก้ไขไฟล์ ้.htaccess อันนี้ผมเอามาจาก joomla

IndexIgnore *
Options +FollowSymlinks
Options -Indexes
RewriteEngine On
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* index.php [F]
RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]

CyberKing
CyberKing
7 years ago

ถ้าต้องการกำหนดสิทธิ์ผู้ใช้งาน มีระบบลองรับไหมครับ แนะนำด้วยครับกำลังอยากได้
เช่น ผู้บริหาร, ผู้จัดการ, หัวหน้า, พนักงาน, และผู้ใช้ทั่วไปที่ไม่เกี่ยวกับองค์กร

benz
Reply to  Tawatsak
7 years ago

public function logout()
{
$this->session->unset_userdata(array(‘login_id’,’username’,’display_name’));
redirect(”, ‘refresh’);
}

ทำไม logout ไม่ได้ครับ

kingkong
kingkong
7 years ago

รบกวนด้วยครับ ผมต้องการระบบนี้เพื่อไปศึกษาและพัฒนาต่อเพื่อทำโปรเจ็คจบ
อยากทราบว่า หน้าเข้าระบบ หรือวิธีติดตั้งมันอยู่ตรงไหนรบกวนด้วยครับ

kingkong
kingkong
Reply to  Tawatsak
7 years ago

เปลี่ยนแปลงข้อมูล database แล้วนะครับแต่ขึ้นแบบนี้

king\\
king\\
7 years ago

ผม login เข้า ใช้งานระบบไม่ได้ ปรับฐานข้อมูลแล้ว ก็ยัง loginไม่ผ่าน ครับ มีวิธีแก้ไหมครับ

pongchai
pongchai
7 years ago

ไม่เจอหน้าล็อกอิน

ปิยะ
ปิยะ
7 years ago

ขอ Code ใหม่ทั้งหมดเลยได้ไหม ครับแก้ไม่เป็นไร เข้า LOGIN ไม่ได้

wee
wee
7 years ago

พี่ครับ เพิ่มผู้ใช้งาน ต้องเขียนโค้ดเพิ่มเองหรอครับ

benz
7 years ago

Login ไม่ได้ครับ

นายเจริญไช ช่างศรี
นายเจริญไช ช่างศรี
7 years ago

ผมอยากได้เป็นคลิปวีดีโอบนยูทูปได้ไหมครับแบบว่าเป็นคลิปสอนผ่านโปรแกรมดรีมวีเวอร์เป็นระบบแบบง่ายๆจะเอาไว้ต่อยอดทำโปรเจคครับและเพื่อเผยแพร่ความรู้ให้คนอื่นได้เข้าใจง่ายด้วยครับสำหรับมือใหม่หัดทำอย่างผม

saensukschool
7 years ago

สวัสดีครับลองเอาไปใช้แล้ว ok ค่ะ แต่ติดปัญหาคือ
1.เวลาแก้ไขเอกสาร แล้ว upload เอกสารไปใหม่ ไม่พบว่ามีการ upload ไฟล์ใหม่ให้ ยังเป็นไฟล์เดิม
2.ไม่สามารถกด Sort ในตารางได้
3.ไม่มีหน้า add user และหน้า log out
4.ไม่มีหน้า login
ขอความอนุเคราะห์จะนำมาใช้กับระบบอัพโหลดเอกสารโรงเรียน ช่วยติดต่อมาที่อีเมล์โรงเรียนด้วยครับจะขอบคุณมาก

TonGz
TonGz
7 years ago

เหมือนจะได้ ไฟล์มาไม่ครบ ไม่มีตรงล็อกอินอ่ะ

ใครที่รันได้ รบกวน อัพลิ้งให้ทีได้ไหมครับ ขอบคุณครับ

kittipong
kittipong
7 years ago

download ไม่ได้ครับ กด like แล้วก็ยังโหลดไม่ได้ครับ

maitree
maitree
7 years ago

http://www.abe.com/ecdocument/user/login

Not Found

The requested URL /ecdocument/user/login was not found on this server.

แก้อย่างไรครับ รบกวนด้วยครับ

maitree
maitree
Reply to  Tawatsak
7 years ago

เข้าไปแล้วเป็นแบบนี้ กรณีที่ผม up ลงไปในเครื่องแม่ข่าย
ต้องเพิ่มอย่างไรครับ ขอบคุณครับ

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

หยก
7 years ago

พี่ค่ะ หยกลองเล่น ตัวเดโม่แอดมิน ดู แต่ว่า อัพไฟล์ไม่ได้อ่าค่ะ

โอ๋
โอ๋
7 years ago

ไม่เห็นโหลดได้เลย

meappd
meappd
6 years ago

แบ่งเลขหน้าไม่มี ต้องทำอย่างไรครับ

waichi
6 years ago

ขอความช่วยเหลือด้วยคับ ในส่วน ของ admin เข้าใช้งานไม่ได้คับ ต้องทำยังไงคับ ขอบคุณมาก ๆ คับ

Waichi
Reply to  Tawatsak
6 years ago

หมายถึง login ไม่ผ่านคับ ใช้ user กับ pass ที่ให้มาคับ

danai
danai
6 years ago

ลองทดสอบโดยเรียกเข้า url ที่เก็บตรง ๆ เช่น http://localhost:8080/ecdocument/uploads/ สามารถเห็นไฟล์ที่เก็บไว้หมด มีวิธีป้องกันหรือไม่ครับ

danai
danai
Reply to  Tawatsak
6 years ago

เป็นไฟล์ index.html ที่อยู่ในโฟลเดอร์ ecdocument/application ตาม source code ครับ เมื่อเอา mouser ไปวางที่ ไฟล์เอกสาร หากดูที่ด้านล่างจะเห็น url ที่เก็บไฟล์ปรากฎอยู่ที่โฟลเดอร์ ecdocument/upload อยากหาวิธีป้องกันตรงส่วนนี้ครับ

danai
danai
Reply to  danai
6 years ago

แก้ไขได้แล้วครับ แก้ไขที่ไฟล์ httpd.conf เพิ่ม Options -Indexes

aeg9966
aeg9966
6 years ago

ติดตั้งอย่างไรครับ ผมใช้ xampp ตอนนี้ติดฐานข้อมูลเรียบร้อยแล้ว
ขอบคุณครับ

หัดทำ
หัดทำ
6 years ago

การติดตั้งต้องแก้ในส่วนไหนบ้าง ผมใช้ xmpp ครับ

danai
danai
6 years ago

ขอบคุณสำหรับ source code ดี ๆ ขอคำแนะนำเพิ่มเติมเรื่องการแบ่งหน้า ต้องทำอย่างไรครับ

ชุม
6 years ago

เข้าหน้า login ไม่ได้ครับ มันเข้าแต่หน้า http://localhost/ecdocument/ นี้ตลอดเลย กดไปไหนก็ไม่ได้ครับ ช่วยผมด้วยครับ

ชุม
6 years ago

แก้ไขอย่างไรครับ เอาขึ้น Hosting แล้วไม่ได้ครับ
A PHP Error was encountered

Severity: Warning

Message: mkdir(): Invalid path

Filename: drivers/Session_files_driver.php

Line Number: 117

Backtrace:

File: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/application/controllers/Document.php
Line: 10
Function: __construct

File: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/index.php
Line: 292
Function: require_once

An uncaught Exception was encountered

Type: Exception

Message: Session: Configured save path ” is not a directory, doesn’t exist or cannot be created.

Filename: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/system/libraries/Session/drivers/Session_files_driver.php

Line Number: 119

Backtrace:

File: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/application/controllers/Document.php
Line: 10
Function: __construct

File: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: file_exists(): open_basedir restriction in effect. File(77568cae7728cd2a9e173d14a28c7faca2451046) is not within the allowed path(s): (/home/monitors/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/)

Filename: drivers/Session_files_driver.php

Line Number: 154

Backtrace:

A PHP Error was encountered

Severity: Warning

Message: fopen(): open_basedir restriction in effect. File(77568cae7728cd2a9e173d14a28c7faca2451046) is not within the allowed path(s): (/home/monitors/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/)

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

A PHP Error was encountered

Severity: Warning

Message: fopen(77568cae7728cd2a9e173d14a28c7faca2451046): failed to open stream: Operation not permitted

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

jom
jom
6 years ago

การเพิ่ม checkbox page edit ทำได้ไม๊ เรื่มเข้าไปเพิ่ม code ที่ใดบ้างครับ

zarsang
zarsang
6 years ago

#1115 – Unknown character set: ‘utf8mb4’

แก้ยังไงครับ

Thawatchai
Thawatchai
6 years ago

กด Like แล้วก็ยังไม่สามารถดาวน์โหลดได้ครับ

withinwither
withinwither
6 years ago

A Database Error Occurred
ผมใช้ XAMPP เรียกผ่าน url http://192.168.0.221/ecdocument/ แล้วขึ้น

Unable to connect to your database server using the provided settings.

Filename: C:/xampp/htdocs/ecdocument/application/controllers/Document.php

Line Number: 10
****************************************
พอเรียกผ่าน http://192.168.0.221/ecdocument/user/login ขึ้น

A Database Error Occurred

Unable to connect to your database server using the provided settings.

Filename: C:/xampp/htdocs/ecdocument/application/controllers/User.php

Line Number: 8

ต้องแก้ไขส่วนไหนบ้างครับ

ชุม
6 years ago

แก้ไขอย่างไรครับ เอาขึ้น Hosting แล้วไม่ได้ครับ
A PHP Error was encountered

Severity: Warning

Message: mkdir(): Invalid path

Filename: drivers/Session_files_driver.php

Line Number: 117

Backtrace:

File: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/application/controllers/Document.php
Line: 10
Function: __construct

File: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/index.php
Line: 292
Function: require_once

An uncaught Exception was encountered

Type: Exception

Message: Session: Configured save path ” is not a directory, doesn’t exist or cannot be created.

Filename: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/system/libraries/Session/drivers/Session_files_driver.php

Line Number: 119

Backtrace:

File: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/application/controllers/Document.php
Line: 10
Function: __construct

File: /home/monitors/domains/monitor-sm.com/public_html/ecdocument/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: file_exists(): open_basedir restriction in effect. File(77568cae7728cd2a9e173d14a28c7faca2451046) is not within the allowed path(s): (/home/monitors/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/)

Filename: drivers/Session_files_driver.php

Line Number: 154

Backtrace:

A PHP Error was encountered

Severity: Warning

Message: fopen(): open_basedir restriction in effect. File(77568cae7728cd2a9e173d14a28c7faca2451046) is not within the allowed path(s): (/home/monitors/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php56/lib/php/)

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

A PHP Error was encountered

Severity: Warning

Message: fopen(77568cae7728cd2a9e173d14a28c7faca2451046): failed to open stream: Operation not permitted

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace: