| Free For Web |
|
| ||
|
| ||
|
| ||
|
| ||
| Web hosting is a service that provides Internet users with online systems for storing information, images, video, or any content accessible via the web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center. | ||
| Top 10 Free hosting | |
| 1 | AwardSpace |
| 2 | FreeHostia |
| 3 | JosHost |
| 4 | Static-Media |
| 5 | 1FreeHost |
| 6 | 100Webspace |
| 7 | MyCHost |
| 8 | ByetHost |
| 9 | AddYour |
| 10 | Complete-Free-Host |
| PHP เป็นภาษาจำพวก scripting language คำสั่งต่างๆจะเก็บอยู่ในไฟล์ที่เรียกว่า สคริปต์ (script) และเวลาใช้งานต้องอาศัยตัวแปลชุดคำสั่ง ตัวอย่างของภาษาสคริปก็เช่น JavaScript, Perl เป็นต้น ลักษณะของ PHP ที่แตกต่างจากภาษาสคริปต์แบบอื่นๆ คือ PHP ได้รับการพัฒนาและออกแบบมา เพื่อใช้งานในการสร้างเอกสารแบบ HTML โดยสามารถสอดแทรกหรือแก้ไขเนื้อหาได้โดยอัตโนมัติ ดังนั้นจึงกล่าวว่า PHP เป็นภาษาที่เรียกว่า server-side หรือ HTML-embedded scripting language เป็นเครื่องมือที่สำคัญชนิดหนึ่งที่ช่วยให้เราสามารถสร้างเอกสารแบบ Dynamic HTML ได้อย่างมีประสิทธิภาพและมีลูกเล่นมากขึ้น |
|
การสร้างวันเวลาปัจจุบัน
<? # $day = date("D j M Y, g:i:s A"); setlocale ("LC_TIME", "th"); $day = strftime("%A"); $d = date("j"); $m = strftime("%b"); # $dm = strftime("%d %b "); $yea = date("Y")+543; $tim = strftime("%H:%M:%S"); $fullday = "$d $m $yea $tim"; echo $fullday; ?> Description Function date
|
|
Function ด้านข้อความ
strlen() หาความยาวของข้อความ strpos() หาตำแหน่งข้อความที่ค้นพบอยู่ในขณะนั้น strrchr() ตัดข้อความจากตัวสุดท้ายที่พบจนถึงตัวท้ายสุด str_repeat() แสดงข้อความซ้ำ ๆ ตามความต้องการ strrev() เรียงสลับข้อความจากหลังไปหน้า strrpos() หาต่ำแหน่งสุดท้ายที่ค้นพบ strstr() ตัดข้อความบางส่วนตั้งแต่ตัวแรกที่ค้นพบจนถึงตัวสุดท้าย strtolower() แปลงข้อความให้เป็นตัวพิมพ์เล็ก strtoupder() แปลงข้อความให้เป้นตัวพิมพ์ใหญ่ str_replace() เปลี่ยนข้อความที่ค้นพบด้วยข้อความใหม่ที่ต้องการ strtr() แปลงตัวอักษรที่แน่นอน substr() ตัดตัวอักษรที่ต้องการใช้ออกมา substr_replace() เปลี่ยนข้อความภายในส่วนของข้อความ trim() ตัดช่องว่างด้านหน้าและด้านหลังข้อความ ucfirst() เปลี่ยนตัวอักษรตัวแรกของข้อความให้เป็นตัวพิมพ์ใหญ่ ucwords() เปลี่ยนอักษรตัวแรกของแต่ละคำในข้อความ stristr() ตัดข้อความบางส่วนตั้งแต่ตัวแรกที่พบจนถึงตัวสุดท้าย ทั้งตัวเล็กและใหญ่ strip_tags() ตัดแท็ก php และ Html ออกจากข้อความ strchr() ตัดข้อความบางส่วนตั้งแต่ตัวแรกที่พบจนถึงตัวสุดท้าย sprintf() ให้ค่าของข้อความที่มีรูปแบบ similar_text() คำนวณความเหมือนระหว่าง 2 ข้อความ setlocale() ปรับค่าข้อมูลท้องถิ่น prinf() แสดงผลข้อความที่มีรูปแบบ prin() แสดงผลข้อความ parse_str() รับค่าข้อความใว้ในตัวแปร Ord() แปลงตัวอักษรเป็นรหัส ASCII ltrim() ตัดข้อความด้านหน้าข้อความออกไป join() รวม Array เป็นข้อความ implode() รวม Array เป็นข้อความ htmlspecialchars() แสดงแท็ก Html flush() เคลียร์บัฟฟอร์ eregi_replace() แทนที่ข้อความที่ค้นพบด้วยคำที่ต้องการ โดยไม่สนใจว่าจะเป็นตัวพิมพ์เล็กหรือใหญ่ ereg_replace() แทนที่ข้อความที่พบด้วยคำที่ต้องการ explode() แยกข้อความโดยใช้เครื่องหมายแยก echo() แสดงผลข้อความ Chr() แปลงรหัส ASCII เป็นตัวอักษร Chop() ตัดช่องว่างท้ายข้อความออกไป |
| Domain names are hostnames that provide more easily memorable names to stand in for numeric IP addresses. They allow for any service to move to a different location in the topology of the Internet (or another internet), which would then have a different IP address. |
| Each string of letters, digits and hyphens between the dots is called a label in the parlance of the domain name system (DNS). Valid labels are subject to certain rules, which have relaxed over the course of time. Originally labels must start with a letter, and end with a letter or digit; any intervening characters may be letters, digits, or hyphens. Labels must be between 1 and 63 characters long (inclusive). Letters are ASCII A–Z and a–z; domain names are compared case-insensitively. Later it became permissible for labels to commence with a digit (but not for domain names to be entirely numeric), and for labels to contain internal underscores, but support for such domain names is uneven. These are the rules imposed by the way names are looked up ("resolved") by DNS. Some top level domains (see below) impose more rules, such as a longer minimum length, on some labels. Fully qualified domain names (FQDNs) are sometimes written with a final dot. |
| Translating numeric addresses to alphabetical ones, domain names allow Internet users to localize and visit Web sites. Additionally since more than one IP address can be assigned to a domain name, and more than one domain name assigned to an IP address, one server can have multiple roles, and one role can be spread among multiple servers. One IP address can even be assigned to several servers, such as with anycast and hijacked IP space |