ใช้ function getdate
43 $today = getdate();
44 $today1 = getdate(strtotime("+1 days"));
45 $today2 = getdate(strtotime("+2 days"));
run บน appserv (http://localhost/) แล้วขึ้นข้อความ
Strict Standards: getdate() [function.getdate]: 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\travel\index.php on line 43
Strict Standards: 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 in C:\AppServ\www\travel\index.php on line 44
Strict Standards: getdate() [function.getdate]: 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\travel\index.php on line 44
Strict Standards: 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 in C:\AppServ\www\travel\index.php on line 45
Strict Standards: getdate() [function.getdate]: 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\travel\index.php on line 45
ต้องแก้ไขอย่างไรครับ
มือใหม่หัดเขียน php
ณัฐ
ใช้ function getdate Strict Standards: getdate() [function.getdate]:
Moderator: mindphp, ผู้ดูแลกระดาน
-
- PHP Newbie
- โพสต์: 4
- ลงทะเบียนเมื่อ: 02/01/2012 10:49 pm
- mindphp
- ผู้ดูแลระบบ MindPHP
- โพสต์: 41125
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
Re: ใช้ function getdate Strict Standards: getdate() [function.getdate]:
ใช้ php เวอร์ชั่นอะไร
เข้าไปแก้ที่ php.ini ครับ แก้เป็น
ตั้งค่า
date.timezone
หรือยัง
เข้าไปแก้ที่ php.ini ครับ แก้เป็น
ตั้งค่า
date.timezone
หรือยัง
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- PHP Newbie
- โพสต์: 4
- ลงทะเบียนเมื่อ: 02/01/2012 10:49 pm
- mindphp
- ผู้ดูแลระบบ MindPHP
- โพสต์: 41125
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
Re: ใช้ function getdate Strict Standards: getdate() [function.getdate]:
เข้าไปแก้ที่ php.ini ครับ แก้เป็น
[Date]
; Defines the default timezone used by the date functions
date.timezone = Asia/Bangkok
[Date]
; Defines the default timezone used by the date functions
date.timezone = Asia/Bangkok
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
-
- Similar Topics
- ตอบกลับ
- แสดง
- โพสต์ล่าสุด
-
-
โพสต์ใหม่ การใช้งาน python ในการสร้าง function ซ้อน function ที่เอาไว้ใช้สำหรับใช้งานภายใน function เท่านั้น
โดย ewqolf » 02/03/2023 9:26 pm » ใน Python Knowledge - 0 ตอบกลับ
- 2780 แสดง
-
โพสต์ล่าสุด โดย ewqolf
02/03/2023 9:26 pm
-
-
-
โพสต์ใหม่ สอบถาม เรื่อง function phpBB ครับ function make_forum_select() คืออะไรครับ ทำงานอย่างไร
โดย flook » 09/08/2022 5:27 pm » ใน Programming - PHP - 2 ตอบกลับ
- 830 แสดง
-
โพสต์ล่าสุด โดย mindphp
05/09/2022 10:03 am
-
-
- 0 ตอบกลับ
- 2702 แสดง
-
โพสต์ล่าสุด โดย ธวัชชัย แสนหาญ
04/01/2019 10:15 am
-
-
โพสต์ใหม่ Call to undefined function เรียก function ไฟล์อื่นเข้ามาใช้งาน phpbb3.1
โดย thatsawan » 28/09/2014 9:56 pm » ใน Programming - PHP - 0 ตอบกลับ
- 1753 แสดง
-
โพสต์ล่าสุด โดย thatsawan
28/09/2014 9:56 pm
-
-
- 0 ตอบกลับ
- 616 แสดง
-
โพสต์ล่าสุด โดย pnut
08/08/2016 5:27 pm
-
- 5 ตอบกลับ
- 1828 แสดง
-
โพสต์ล่าสุด โดย M030
19/09/2015 2:44 pm
-
- 2 ตอบกลับ
- 946 แสดง
-
โพสต์ล่าสุด โดย makup
15/10/2020 7:27 pm
ผู้ใช้งานขณะนี้
สมาชิกกำลังดูบอร์ดนี้: Bing [Bot], Google [Bot] และบุคลทั่วไป 62