SMF SSI.php Functions
Current Version: 2.1.6
This file is used to demonstrate the capabilities of SSI.php using PHP include functions. The examples show the include tag, then the results of it.
Include Code
To use SSI.php in your page add at the very top of your page before the <html> tag on line 1 of your php file:
<?php require("SSI.php"); ?>
Some notes on usage
All the functions have an output method parameter. This can either be "echo" (the default) or "array"
If it is "echo", the function will act normally - otherwise, it will return an array containing information about the requested task. For example, it might return a list of topics for ssi_recentTopics.
This functionality can be used to allow you to present the information in any way you wish.
Additional Guides & FAQ
Need more information on using SSI.php? Check out Using SSI.php article.
Recent Topics Function
Code (simple mode)
<?php ssi_recentTopics(); ?>
Code (advanced mode)
<?php ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo'); ?>
Result
Recent Posts Function
Code
<?php ssi_recentPosts(); ?>
Result
Top Boards Function
Shows top boards by the number of posts.
Code
<?php ssi_topBoards(); ?>
Result
Top Topics
Shows top topics by the number of replies or views.
Code (show by number of views)
<?php ssi_topTopicsViews(); ?>
Result
Code (show by number of replies)
<?php ssi_topTopicsReplies(); ?>
Result
Top Poster Function
Shows the top poster's name and profile link.Code
<?php ssi_topPoster(); ?>
Result
Latest Member Function
Shows the latest member's name and profile link.
Code
<?php ssi_latestMember(); ?>
Result
Member of the Day
Shows one random member of the day. This changes once a day.
Code
<?php ssi_randomMember('day'); ?>
Result
|
junjao
สอบถาม ได้ที่ jun_jao2000@hotmail.com |
Who's Online Function
This function shows who are online inside the forum.
Code
<?php ssi_whosOnline(); ?>
Result
junjao
Log Online Presence
This function logs the SSI page's visitor, then shows the Who's Online list. In other words, this function shows who are online inside and outside the forum.
Code
<?php ssi_logOnline(); ?>
Result
junjao
Login Function
Shows a login box only when user is not logged in.
Code
<?php ssi_login(); ?>
Result
Logout Function
Shows a logout link only when user is logged in.
Code
<?php ssi_logout(); ?>
Result
Welcome Function
Greets users or guests, also shows user's messages if logged in.
Code
<?php ssi_welcome(); ?>
Result
Today's Calendar Function
Code
<?php ssi_todaysCalendar(); ?>
Result
Today's Birthdays Function
Code
<?php ssi_todaysBirthdays(); ?>
Result
Today's Holidays Function
Code
<?php ssi_todaysHolidays(); ?>
Result
Today's Events Function
Code
<?php ssi_todaysEvents(); ?>
Result
Forum Stats
Shows some basic forum stats: total members, posts, topics, boards, etc.
Code
<?php ssi_boardStats(); ?>
Result
News Function
Shows random forum news.
Code
<?php ssi_news(); ?>
Result
https://www.exness.com/boarding/sign-up/a/73208?lng=th
1. เลือกประเทศ ไทย
2. อีเมล์จริงของคุณ
3. รหัสผ่าน
* รหัสผ่านต้องมีความยาว 8-15 ตัว
* ใช้ทั้งอักษรตัวพิมพ์ใหญ่และตัวพิมพ์เล็ก
* ใช้ทั้งตัวเลขและตัวอักษรภาษาอังกฤษ
* ห้ามใช้อักขระพิเศษ (!@#$%^&*., และอื่นๆ)
4. ใส่รหัสพาร์ทเนอร์ 73208
---------------------------------------------------------
Board News Function
Shows the latest posts from read only boards, or a specific board.
Code
<?php ssi_boardNews(); ?>
Result
การรีสตาร์เครื่อง windoes server มีข้อดีและข้อเสียอย่างไรบ้าง
---
## ✅ ข้อดีของการรีสตาร์ท Server
**1. เคลียร์หน่วยความจำ (RAM)**
* โปรแกรมที่ค้างหรือใช้ RAM สะสมจะถูกล้าง
* ช่วยให้ระบบกลับมาทำงานลื่นขึ้น
**2. แก้ปัญหา Error ชั่วคราว**
* เช่น service ค้าง, process เพี้ยน, memory leak
* รีสตาร์ทแล้วมักหายทันที
**3. อัปเดตระบบให้สมบูรณ์**
* Windows Update, Patch ความปลอดภัย ต้องรีสตาร์ทถึงจะมีผล
**4. รีเฟรช Service ทั้งระบบ**
* service ที่ทำงานผิดปกติจะเริ่มใหม่ทั้งหมด
---
## ❌ ข้อเสียของการรีสตาร์ท Server
**1. ระบบหยุดให้บริการ (Downtime)**
* Website, Database, API จะใช้งานไม่ได้ช่วงหนึ่ง
* กระทบลูกค้าโดยตรง (สำคัญมาก)
**2. เสี่ยงข้อมูลหาย**
* ถ้ามี transaction หรือ process ยังไม่เสร็จ เช่น
* DB ยังเขียนข้อมูลไม่จบ
* ไฟล์ยัง save ไม่ครบ
**3. ใช้เวลาบูต + โหลดระบบ**
* Server บางเครื่องใช้เวลา 2–10 นาที หรือมากกว่า
* ยิ่งมี service เยอะ ยิ่งช้า
**4. ปัญหาหลังรีสตาร์ท**
* Service บางตัวอาจไม่ start อัตโนมัติ
* Script / dependency อาจ error
---
## 📌 แนวทางที่ควรทำ (Best Practice)
* รีสตาร์ท **เฉพาะจำเป็น** เช่น:
* หลัง update
* ระบบเริ่มช้า/ค้าง
* ทำในช่วง **Low Traffic** (เช่น กลางคืน)
* แจ้งผู้ใช้งานก่อน (ถ้าเป็น production)
* ตรวจสอบก่อน reboot:
* Backup ข้อมูล
* เช็ค service สำคัญ
* หลัง reboot:
* ตรวจสอบว่า service ทำงานครบ
---
## 🔧 สรุปแบบใช้งานจริง
* ถ้า Server ทำงานปกติ 👉 **ไม่จำเป็นต้อง reboot บ่อย**
* ถ้ามีปัญหา performance / memory leak 👉 **รีสตาร์ทช่วยได้**
* Server สำคัญ (เช่น Forex, Trading, Web) 👉 **ต้องวางแผน reboot ดีๆ**
---------------------------------------
การล้างหัวพิมพ์ Epson L3250 ใน Windows11 ทำอย่างไร
---
## 🔧 วิธีล้างหัวพิมพ์ Epson L3250 (ผ่านคอม)
### วิธีที่ 1: ผ่าน Driver Printer (แนะนำ)
1. กดปุ่ม **Start**
2. ไปที่ **Settings (การตั้งค่า)**
3. เลือก **Bluetooth & devices → Printers & scanners**
4. เลือกเครื่องพิมพ์ **Epson L3250**
5. กด **Printer properties (คุณสมบัติเครื่องพิมพ์)**
6. ไปที่แท็บ **Maintenance (การบำรุงรักษา)**
7. คลิก **Head Cleaning**
8. กด **Start** เพื่อเริ่มล้างหัวพิมพ์
⏱ ใช้เวลาประมาณ 1–3 นาที
---
### วิธีที่ 2: ผ่าน Control Panel (แบบเก่า)
1. พิมพ์คำว่า **Control Panel** ในช่องค้นหา
2. ไปที่ **Devices and Printers**
3. คลิกขวาที่ **Epson L3250**
4. เลือก **Printing preferences**
5. ไปที่แท็บ **Maintenance**
6. เลือก **Head Cleaning**
---
## ✅ หลังล้างหัวพิมพ์
* ให้สั่ง **Nozzle Check** (ตรวจสอบหัวพิมพ์) เพื่อตรวจดูว่าเส้นหมึกปกติหรือยัง
* ถ้ายังขาดหรือไม่ครบ → ล้างซ้ำได้อีก 1–2 ครั้ง
---
## ⚠️ ข้อควรระวัง
* ห้ามล้างติดกันหลายครั้ง (เกิน 3 ครั้ง) เพราะจะทำให้หมึกหมดเร็ว
* ถ้ายังไม่หาย แนะนำ:
* พักเครื่อง 1–2 ชั่วโมง แล้วลองใหม่
* หรือใช้ **Power Cleaning** (ล้างแรง) แต่จะกินหมึกมาก
---
## 💡 เคล็ดลับ
* ควรพิมพ์งานอย่างน้อยสัปดาห์ละ 1–2 ครั้ง เพื่อป้องกันหัวพิมพ์ตัน
* ใช้หมึกแท้ จะช่วยลดปัญหาอุดตัน
--------------------------------------
CPU ปัจจุบันมีรุ่นอะไรบ้าง 20-4-2569
---
# 🧠 ทำความเข้าใจก่อน
## 🔹 Zen คืออะไร?
* **Zen** คือชื่อ "สถาปัตยกรรม CPU" ของ AMD
* ใช้ในตระกูล AMD Ryzen และ Threadripper
👉 เปรียบง่าย ๆ:
* Zen 1 → รุ่นเก่า
* Zen 2 → ดีขึ้น
* Zen 3 / 4 / 5 → แรงขึ้นเรื่อย ๆ
* Zen 6 → กำลังจะมา
* **Zen 7 → รุ่นอนาคต (ก้าวกระโดดใหญ่)**
---
# 🚀 Zen 7 (2nm) คืออะไร
**Zen 7 = CPU เจเนอเรชันใหม่ของ AMD ที่จะใช้เทคโนโลยี 2nm**
### 🔬 2nm คืออะไร?
* เป็นขนาด "ทรานซิสเตอร์" บนชิป (ยิ่งเล็ก → ยิ่งดี)
* เปรียบเหมือน:
* 7nm → ถนนเลนธรรมดา
* 3nm → ถนนใหญ่
* **2nm → ทางด่วนหลายชั้น 🚀**
---
# 🔥 จุดเด่นของ Zen 7 (คาดการณ์)
### 1) ⚡ แรงขึ้นมาก
* ประมวลผลเร็วขึ้น (IPC สูงขึ้น)
* เหมาะกับ:
* AI
* Trading
* Render
* Gaming
---
### 2) 🔋 ประหยัดไฟกว่าเดิม
* ใช้ไฟน้อยลง แต่แรงขึ้น
👉 ดีมากสำหรับ
* Laptop
* Server
---
### 3) 🤖 เน้น AI หนักขึ้น
* มี **NPU / AI Engine** ในตัว
* รองรับงาน:
* AI Trading
* Machine Learning
* Automation
---
### 4) 🧱 จำนวนคอร์มากขึ้น
* คาดว่าเพิ่ม core / thread อีก
* Multi-task โหดมาก
---
# 📅 จะมาเมื่อไหร่?
* AMD วางแผนคร่าว ๆ:
* Zen 6 → ปี 2026
* **Zen 7 → ประมาณปี 2027+**
---
# 🆚 เทียบให้เข้าใจง่าย
| รุ่น | เทคโนโลยี | ความแรง |
| --------- | --------- | ------------- |
| Zen 4 | 5nm | ดีมาก |
| Zen 5 | 4nm | แรงขึ้น |
| Zen 6 | 3nm | เร็ว + AI |
| **Zen 7** | **2nm** | 🚀 ก้าวกระโดด |
---
# 💡 สรุปสั้น
👉 **Zen 7 (2nm) = CPU AMD รุ่นอนาคตที่ "แรงขึ้น + ประหยัดไฟ + เน้น AI" แบบก้าวกระโดด**
--------------------------------------------------------
ภาษาคอมพิวเตอร์ จุดเริ่มต้น ปัจจุบันใช้ภาษาใดบ้าง
---
## 🧠 จุดเริ่มต้นของภาษาคอมพิวเตอร์
1. **ภาษาเครื่อง (Machine Language)**
* เป็นภาษาแรกสุด ใช้เลข 0 และ 1 ล้วน ๆ
* คอมพิวเตอร์เข้าใจได้ทันที แต่คนอ่านแทบไม่รู้เรื่อง
2. **ภาษาแอสเซมบลี (Assembly Language)**
* ใช้คำสั่งแทนเลข เช่น `MOV`, `ADD`
* ยังต้องเขียนใกล้กับฮาร์ดแวร์มาก
3. **ภาษาระดับสูงยุคแรก (High-level Languages)**
เริ่มทำให้คนเขียนโปรแกรมง่ายขึ้น เช่น
* FORTRAN (งานวิทยาศาสตร์)
* COBOL (งานธุรกิจ)
* C (พื้นฐานของหลายภาษา)
---
## 🚀 พัฒนาการสู่ยุคปัจจุบัน
ต่อมามีการพัฒนาแนวคิดใหม่ ๆ เช่น OOP (Object-Oriented Programming), Web, AI ทำให้เกิดภาษาใหม่จำนวนมาก
---
## 💻 ภาษาคอมพิวเตอร์ที่นิยมใช้ "ปัจจุบัน"
### 🌐 สาย Web / App
* JavaScript → ใช้ทำเว็บ (Frontend + Backend)
* HTML / CSS → โครงสร้าง + ดีไซน์เว็บ
* TypeScript → JavaScript เวอร์ชันที่มี type
---
### ⚙️ สายระบบ / ซอฟต์แวร์
* C++ → เร็วมาก ใช้กับเกม/ระบบ
* Java → ระบบองค์กร / Android
* C# → ใช้กับ .NET / เกม Unity
---
### 🤖 สาย AI / Data / Automation
* Python → นิยมที่สุดในโลกตอนนี้ (AI, Data, Bot, EA ก็ทำได้)
* R → วิเคราะห์ข้อมูล
---
### 📱 สาย Mobile
* Kotlin → Android
* Swift → iPhone
---
### 💰 สายเฉพาะทาง
* MQL4 / MQL5
→ ใช้เขียน EA เทรด Forex
---
## 🔥 สรุปให้เข้าใจแบบเร็ว
* อดีต → ใช้ 0/1 → เขียนยาก
* ปัจจุบัน → ภาษาเหมือนมนุษย์ → เขียนง่ายขึ้นมาก
* ตอนนี้มี **100+ ภาษา** แต่ใช้จริงไม่กี่ตัว
👉 ถ้าจะ "ทำเงิน + เทรด + AI"
แนะนำโฟกัสแค่ 3 ภาษา:
* Python (ทำ AI / วิเคราะห์)
* MQL4/5 (ทำ EA)
* JavaScript (ทำเว็บ / Dashboard)
-------------------------------------------
NPU Neural Processing Unit คืออะไร
---
## 🔧 เปรียบเทียบง่าย ๆ
* **CPU (Central Processing Unit)** → คิดงานทั่วไป (สมองหลัก)
* **GPU (Graphics Processing Unit)** → ประมวลผลภาพ / งานที่ต้องคำนวณพร้อมกันเยอะ
* **NPU (Neural Processing Unit)** → คิดงาน AI โดยเฉพาะ
---
## 🧠 NPU ทำอะไรได้บ้าง
NPU ถูกใช้ในงานที่เกี่ยวกับ AI เช่น:
* 📸 ถ่ายรูปแล้ว "หน้าสวยอัตโนมัติ" (AI Camera)
* 🗣� แปลงเสียงเป็นข้อความ (Speech Recognition)
* 🌐 แปลภาษาแบบเรียลไทม์
* 🤖 รันโมเดล AI บนอุปกรณ์ (ไม่ต้องใช้อินเทอร์เน็ต)
* 📊 วิเคราะห์ข้อมูล / พฤติกรรมผู้ใช้
---
## 📱 ตัวอย่างอุปกรณ์ที่มี NPU
* สมาร์ตโฟน (เช่น iPhone 15, Samsung Galaxy S24)
* ชิปมือถือ เช่น Apple A17 Pro, Qualcomm Snapdragon 8 Gen 3
* โน้ตบุ๊ก AI รุ่นใหม่ (AI PC)
---
## ⚡ จุดเด่นของ NPU
* เร็วมากสำหรับงาน AI
* ใช้พลังงานน้อยกว่า CPU/GPU
* ทำงานแบบ "On-device AI" (ไม่ต้องส่งข้อมูลขึ้น Cloud → ปลอดภัยกว่า)
---
## 🧩 สรุปสั้น ๆ
> **NPU = ชิปสมอง AI** ที่ช่วยให้อุปกรณ์ "คิด วิเคราะห์ และเรียนรู้" ได้เร็วขึ้น โดยไม่ต้องพึ่งอินเทอร์เน็ตตลอดเวลา
-------------------------
Recent Attachments Function
Code
<?php ssi_recentAttachments(); ?>
Result
| File | Posted by | Downloads | Filesize |
|---|---|---|---|
| junjao | 27 | 69.71KB | |
| junjao | 26 | 28.51KB | |
| junjao | 27 | 81.39KB | |
| junjao | 359 | 113.48KB | |
| junjao | 358 | 1096.97KB | |
| junjao | 365 | 238.36KB | |
| junjao | 362 | 87.47KB | |
| junjao | 363 | 111.73KB | |
| junjao | 360 | 39.13KB | |
| junjao | 359 | 105.31KB |
Show Single Poll
Shows a poll in the specified topic.
Code
<?php ssi_showPoll($topicID); ?>
Result
Show Single Post
Fetches a post with a particular IDs. By default will only show if you have permission to the see the board in question. This can be overridden by passing the 2nd parameter as true.
Code
<?php ssi_fetchPosts($postIDs, $isOverride); ?>
Result
Show Single Member
Shows the specified member's name and profile link.
Code
<?php ssi_fetchMember($memberIDs); ?>
Result
Show Group Members
Shows all members in a specified group.
Code
<?php ssi_fetchGroupMembers($groupIDs); ?>
Result
Home Page Sample
This sample uses the following features: ssi_recentTopics(), ssi_logOnline(), ssi_welcome(), and ssi_boardNews(). ssi_recentTopics() is fetched using the array method, to allow further customizations on the output.Code
<?php require("SSI.php"); ?>
<!DOCTYPE html>
<html>
<head>
<title>SSI.php example for home page</title>
<style>
body { font-family: Arial, Tahoma, sans-serif; font-size: 80%; background: #DFDFDF; color: #FFFFFF; margin: 0 }
ul,ol { padding-left: 19px; margin: 0; }
li { font-size: 11px; }
h1,h2,h3 { margin: 0; padding: 0; }
h3 { font-size: 15px; }
a:link,a:visited { color: #FF9000; text-decoration: none; }
a:hover { text-decoration: underline; }
#container { background: #52514E; width: 100%; border: 1px solid midnightblue; line-height: 150%; margin: 0; }
#header,#footer { color: lightgray; background-color: #2A2825; clear: both; padding: .5em; }
#leftbar { background: #DF7E00; float: left; width: 160px; margin: 0; padding: 1em; }
#leftbar a { color: #000000; text-decoration: underline; }
#content { margin-left: 190px; padding: 1em; }
#navigation { float: right; }
#navigation a:link,#navigation a:visited { color: #FF9000; }
</style>
</head>
<body>
<div id="container">
<div id="header">
<div id="navigation">
<a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a>
</div>
<h1 class="header">YourWebsite.com</h1>
</div>
<div id="leftbar">
<h3>Recent Forum Topics</h3>
<ul>
<?php
// Using array method to show shorter display style.
$topics = ssi_recentTopics(8, null, null, 'array');
foreach ($topics as $topic)
{
// Uncomment the following code to get a listing of array elements that SMF provides for this function.
// echo '<pre>', print_r($topic), '</pre>';
echo '
<li><a href=\"', $topic['href'], '\">', $topic['subject'], '</a> ', $txt['by'], ' ', $topics[$i]['poster']['link'], '</li>';
}
unset($topics);
?>
</ul><br>
<h3>Online Users</h3>
<?php ssi_logOnline(); ?>
</div>
<div id="content">
<?php ssi_welcome(); ?><br><br>
<h2>News</h2>
<?php ssi_boardNews(); ?>
</div>
<div id="footer">
<a target="_blank" rel="noopener" rel="license" href="https://creativecommons.org/licenses/publicdomain/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/publicdomain/88x31.png"></a>
This sample website layout is dedicated to the <a target="_blank" rel="noopener" rel="license" href="https://creativecommons.org/licenses/publicdomain/">Public Domain</a>.
</div>
</div>
</body>
</html>