สวัสดีครับเพิ่งสมัครมาไม่นาน มีคำถามครับ

คือผมหลงเข้ามาน่ะครับกำลังหา cms ที่ใช้งานง่ายๆ รันเป็น web instranet ในบริษัท

อยากขอคำแนะนำคุณกอรกฎ หน่อยครับ กรณี รันร่วมกับ AppServ 2.1

ว่าทำเช่นไรบ้าง พอดีรันแล้วเจอปัญหาครับ

มันขึ้น error ที่ตัว fuctions.php

line ที่ 3 สาม ตัว และ 5 , 6 ,7

ติดตั้ง ระบบสมาชิก และ เว็บบอร์ด ของ GCMS



Strict Standards: date() [function.date]: 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 in C:\AppServ\www\cm\bin\function.php on line 3

Strict Standards: date() [function.date]: 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 in C:\AppServ\www\cm\bin\function.php on line 3

Strict Standards: mktime() [function.mktime]: 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 in C:\AppServ\www\cm\bin\function.php on line 3

Strict Standards: date() [function.date]: 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 in C:\AppServ\www\cm\bin\function.php on line 5

Strict Standards: date() [function.date]: 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 in C:\AppServ\www\cm\bin\function.php on line 6

Strict Standards: date() [function.date]: 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 in C:\AppServ\www\cm\bin\function.php on line 7
ตาราง สมาชิก และ แอดมิน ถูกสร้างขึ้นเรียบร้อยแล้ว
ตารางคำถามของเว็บบอร์ดถูกสร้างขึ้นเรียบร้อยแล้ว
ตารางคำตอบของเว็บบอร์ดถูกสร้างขึ้นเรียบร้อยแล้ว

 

ครับ ซึ่งผมพยายามจะติดตั้ง setup.php แต่ขึ้น error ดังกล่าวไม่สามารถแก้ได้ (ไม่ค่อยมีความรู้เรื่อง php - -*)

ขอความรบกวนด้วยนะขอรับ

 

ขอบคุณมากครับ

25 ต.ค. 2551 2 4,319

ให้ลองแทรกคำสั่งนี้ก่อนฟังก์ชั่น date ใน function.php ครับ

date_default_timezone_set(Asia/Bangkok');

ดูรายละเอียดเกี่ยวกับเรื่องนี้ที่ http://th.php.net/date_default_timezone_set คิดว่าปัญหาเกิดจาก เวอร์ชั่นของ PHP ครับ

#1

ขอบคุณมากคร้าบ

แต่ว่าที่ถูกต้องคือ


date_default_timezone_set('Asia/Bangkok');


ตกตัว  '  ข้างหน้าคำว่า Asia ไปตัวนึงน่ะครับ อิอิ

แถมๆๆ ใครที่แสดงภาษาไทยใน myslq ไม่ได้ให้เอาอันนี้ไปวางใน connect.php น่ะครับ


mysql_query('SET CHARACTER SET tis620');

#2
ความคิดเห็น
ไฟล์อัปโหลด ชนิด jpg, jpeg ขนาดไฟล์ไม่เกิน 1024
^