framework คือ
ชุดเครื่องมือ ไลบรารี่ แนวทางในการเขียนแอปพริเคชั่น ช่วยลดการเขียนโคดที่ต้องเขียนบ่อย ๆ ให้อยู่ในรูปแบบที่พร้อมในการใช้งานได้ พูดง่าย ๆ คือ โคดที่ต้องมีในทุก ๆ โปรเจ็คหรือโคดพื้นฐานทั่วไป เราไม่ต้องเสียเวลาเขียนขึ้นใหม่ หน้าที่ของเราคือเขียนโคดที่จะทำให้แอปพลิเคชั่นบรรลุวัตถุประสงค์
CSS framework คือ
ชุดของไฟล์ css ที่ได้จัดเตรียมการจัดรูปแบบพื้นฐาน รูปแบบฟอร์ม grid เลย์เอาท์ ไว้ให้ใช้ โดยเราไม่จำเป็นต้องเขียนโคดซ้ำ ๆ เช่น เรามีงานออกแบบเว็บไซท์ 10 โปรเจ็ค ทุกโปรเจ็คจะต้องมีบางสิ่งที่คล้ายกัน ไอ้สิ่งที่คล้ายกันนี้เราก็ไม่จำเป็นต้องเขียนซ้ำแล้วซ้ำอีก
ในภาษา php จะใช้เครื่องหมาย % ในการ modulo
ปัญหาที่เกิดขึ้นก็คือเราจะไม่สามารถ modulo ทศนิยมได้
ดู bug ได้ที่ http://bugs.php.net/bug.php?id=41802
เช่น 5%0.11 แทนที่จะได้ 0.05 กลับกลายเป็นว่าได้ 0 และ
แถม warning มาด้วย (Warning: Division by zero)
ทั้งนี้ก็เพราะ % ไม่สามารถกระทำกับ float ได้ โดยจะตัดทศนิยมทิ้ง
ในกรณีตัวอย่างข้างต้น จะปัดเหลือ 0 ทำให้เกิด warning ขึ้น
วิธีแก้ก็คือ เปลี่ยนไปใช้ function fmod
float fmod( float $x , float $y )
http://us2.php.net/manual/en/function.fmod.php
authentication คืออะไร พูดง่าย ๆ ที่สุด ก็คือ การป้องกันการเข้าถึงข้อมูลโดยการใช้ username และ password ในบทความนี้เราจะมา authentication ด้วยภาษาสคริปอย่าง php กัน แต่คุณจะต้องติดตั้ง apache module นั่นก็หมายความว่าแบบ CGI นั้นก็ใช้ไม่ได้นั่นเอง
ดูโคดตัวอย่างกันคับ ในที่นี้สมมติว่าเราป้องกันการเข้าถึงด้วย username “myuser” และ password “mypass”
-
<?php
-
if ($_SERVER[‘PHP_AUTH_USER’] != "mysuser" or $_SERVER[‘PHP_AUTH_PW’] != "mypass"):
-
?>
-
<HTML>
-
<HEAD><TITLE>Authorization Failed</TITLE></HEAD>
-
<BODY>
-
<H1>Authorization Failed</H1>
-
<P>Without a valid username and password,
-
access to this page cannot be granted.
-
Please click "reload" and enter a
-
username and password when prompted.
-
</P>
-
</BODY>
-
</HTML>
-
<?php else: ?>
-
…เนื้อหาในหน้าเว็บที่ต้องการป้องกันการเข้าถึง…
-
<?php endif; ?>
file manager คือ โปรแกรมที่มีส่วนติดต่อกับผู้ใช้เพื่ออำนวยความสะดวกในการจัดการไฟล์ในระบบ เช่น สร้าง เปิด แก้ไข เปลี่ยนชื่อ ย้าย ลบ คัดลอก ลบ ค้นหา เป็นต้น สำหรับ file manager ที่เป็น web-based จะมีฟังก์ชันการใช้งานที่เพิ่มขึ้นมาคือ การอัพโหลดไฟล์ขึ้นเซอฟเวอร์
WordPress File Manager เป็น plugin ที่ให้ใช้ได้ฟรีเพื่ออำนวยความสะดวกให้กับผู้ใช้ wordpress ในการจัดการไฟล์ที่ใช้ในบล็อกที่ส่วนมากจะเป็นรูปประกอบการเขียนบล็อก หรืออาจจะเป็นไฟล์ที่แนบมากับเนื้อหาบล็อกเพื่อให้ผู้อ่านดาวน์โหลด

Value and Reference Types
ก่อนอื่นต้องเข้าใจก่อนว่าอ็อบเจ็คที่สร้างจาก structs จะเป็น value types(รวมถึง Primitive types เช่น int, float, bool and char ด้วย) NFWจะจองหน่วยความจำไว้แหล่งเดียว(stack) ส่วนอ็อบเจ็คที่สร้างจาก classes จะเป็น reference types NFWจะจองหน่วยความจำไว้ 2 แหล่ง คือ heap สำหรับเก็บ อ็อบเจ็ค และ stack สำหรับเก็บตัวอ้างอิง
ตัวอย่างต่อไปนี้จะคือการประกาศอ็อบเจ็คโดยสมมติว่า Point คือ struct และ Form คือ class
-
Point p1 = new Point(); // Point เป็น *struct*
-
Form f1 = new Form(); // Form เป็น *class*
การออกแบบเว็บในยุคก่อน(ปัจจุบันก็ยังใช้กันอยู่)จะใช้ <table> ในการวางเลเอาท์ ดังตัวอย่างต่อไปนี้
-
<html>
-
<head>
-
<title> my website </title>
-
<meta name="keywords" content="joe bloggs’ website, site, pages,">
-
<meta name="author" content="joe bloggs">
-
-
<link href="stylesheet.css" rel="stylesheet" type="text/css">
-
</head>
-
<body>
-
-
<table id="main">
-
<tr><td>
-
<img src="images/bla.gif" align="left" alt="layout image 1"><br />
-
</td></tr>
-
<tr><td>
-
<h1>Welcome to my website</h1>
-
<p>This is my wonderful website with funky content and groovy images!</p>
-
</td></tr>
-
</table>
-
-
</body>
-
</html>
พูดง่าย ๆ ก็คือทำให้มันแสดงสีนะแหละ
เพราะผมใช้ cakePHP Framework มันจะมี extension
ชื่อ .thtml และใน v1.2 นี้ยังมีอันใหม่มาอีกคือ .ctp
ถ้าเปิดกับ DreamWeaver มันจะไม่แสดงสี
ทำให้ดูลำบากมาก วิธีแก้มีดังนี้คับ
ติดตั้ง flickr-tag
http://wordpress.org/extend/plugins/flickr-tag/
Event Viewer
In Windows XP, an event is any significant occurrence in the system or in a program that requires users to be notified, or an entry added to a log. The Event Log Service records application, security, and system events in Event Viewer. With the event logs in Event Viewer, you can obtain information about your hardware, software, and system components, and monitor security events on a local or remote computer. Event logs can help you identify and diagnose the source of current system problems, or help you predict potential system problems.
