เอฟทีพี ส่งข้อมูล ขึ้นเครื่องบริการ ( Upload to FTP server )
เว็บเพจสำรอง (Backup Webpages) : thaiall.com | lampang.thcity.com
ปรับปรุง : 2549-08-05 (สอนใช้ filezilla)
สิ่งที่ท่านต้องมี (ก่อนส่งแฟ้มเข้าเครื่องบริการ)
1. Host Name
เช่น 202.29.78.12 หรือ www.thcity.com
2. User Name
เช่น sanookmak
3. Password
เช่น ajsasf898
4. FTP Client Program
เช่น filezilla หรือ ws_ftp32
ถ้าไม่มี 3 อย่างแรก ท่านต้องถามจากผู้ให้บริการ
แนะนำเว็บ (Web Guides)
1. FileZilla (Client+Server+Open Source)
2. Ws_FTP (Commercial)
3. Ws_FTP32 229 KB (Student)
4. FileZilla # 2.2.4 3 MB
5. เว็บเพจเดิมสอน WS_FTP
เอฟทีพี (FTP = File Transfer Protocal) คือ อะไร
โปรแกรมที่ใช้สำหรับส่งแฟ้ม (Send) หรือรับแฟ้ม (Receive) ระหว่างเครื่องคอมพิวเตอร์ของผู้ใช้ (Client Computer) กับเครื่องบริการ (Web Hosting) ผู้ให้บริการมักเปิดบริการ Port 21 พร้อมสร้างรหัสผู้ใช้(User Name) และรหัสผ่าน(Password) ให้ผู้ใช้แต่ละคนได้เป็นเจ้าของพื้นที่แต่ละห้อง (User Folder) เมื่อส่งแฟ้มชื่อ index.html หรือ default.asp ตามที่เครื่องบริการกำหนด เข้าไปในห้องสำหรับเผยแพร่เว็บเพจ ผู้ใช้ทั่วไปก็จะเข้าถึงข้อมูลได้ตามที่ผู้พัฒนาเว็บเพจคาดหวัง
FTP (File Transfer Protocol) is a commonly used protocol for exchanging files over any network that supports the TCP/IP protocol (such as the Internet or an intranet). There are two computers involved in an FTP transfer: a server and a client. The FTP server, running FTP server software, listens on the network for connection requests from other computers. The client computer, running FTP client software, initiates a connection to the server.
ส่งแฟ้มเข้าเครื่องบริการได้อย่างไร (โดยทั่วไป)
วิธีที่ 1 : ใช้ File Manager ใน Control Panel
ผู้ให้บริการ Web Hosting ทุกรายมีระบบ Control Panel เช่น cpanel, direct admin หรือ plesk ผู้ใช้จะได้รับ e-mail แจ้งว่าเข้าใช้ Control Panel ได้อย่างไร และจะพบกับ File Manager ที่ทำให้ท่านเข้าไปจัดการกับระบบแฟ้ม และห้องต่าง ๆ ได้ รวมถึงการส่งแฟ้ม หรือนำแฟ้มออกมาจากเครื่อง เป็นต้น
วิธีที่ 2 : ใช้ DOS FTP on Command Line
ในคอมพิวเตอร์ทุกระบบปฏิบัติการ มักมีโปรแกรม FTP ที่ทำงานใน Text Mode ท่านสามารถพิมพ์คำสั่ง ftp ตามด้วยชื่อ Host เพื่อเชื่อมต่อกับเครื่องบริการ และส่งแฟ้มได้ทันที ตัวอย่างคำสั่งอยู่ท้ายสุดของเว็บเพจหน้านี้
วิธีที่ 3 : FTP Client Program
ต้อง Download โปรแกรม เช่น filezilla หรือ ws_ftp32 เป็นต้น มาติดตั้งในคอมพิวเตอร์ แล้วกำหนดชื่อโฮส ชื่อผู้ใช้ และรหัสผ่าน โปรแกรมจะเข้าเชื่อมต่อกับเครื่องบริการ จากนั้นผู้ใช้ก็เลือกแฟ้มที่จะส่ง หรือรับ กับเครื่องบริการได้โดยสะดวก


Download : filezilla2224.exe or Current Version

การส่ง และการรับแฟ้ม ด้วย ftp ของ windows

แนะนำคำสั่งเพิ่มเติม
- การลบแฟ้ม ใช้ del ตามด้วยชื่อแฟ้ม
- การเปลี่ยนชื่อแฟ้ม ใช้ ren ตามด้วยชื่อเก่า และชื่อใหม่
- การนำแฟ้มจาก server มาใน PC ใช้ get ตามด้วยชื่อแฟ้ม
คำสั่งพิเศษที่ต้องแนะนำ คือ mput   *.*
ซึ่งมีหน้าที่ส่งเข้าไปได้หลาย ๆ แฟ้ม ไม่ต้อง put ทีละแฟ้ม
ถ้าไม่มี FTP client ตัวอื่น ก็ใช้ FTP on windows ได้
ให้เข้าไปที่ DOS แล้วพิมพ์คำสั่ง FTP ตามด้วยชื่อ host
เช่น ftp.exe burin.8m.com
หรือ ftp thaiall.ueuo.com
ตัวอย่างนี้ท่านต้องพิมพ์ทั้งหมด 8 จุด
  1. ftp burin.8m.com
  2. burin
  3. รหัสผ่าน เมื่อพิมพ์จะมองไม่เห็น
  4. lcd c:\
  5. bin
  6. put bg.gif
  7. ls *.gif
  8. bye

lcd c:\ หมายถึง ..
แจ้งให้โปรแกรมทราบแหล่งเก็บแฟ้มใน PC
เช่น lcd c:\home\ หรือ lcd c:\myweb\
bin หมายถึง .. (อาจไม่จำเป็น)
แจ้งว่าถ้ารับส่งแฟ้มจะส่งแบบ binary
ถ้าส่งภาพต้องกำหนดเป็น bin เสมอ
แต่ถ้าเป็น htm ไม่กำหนดอะไรก็ได้
ถ้าจะกำหนดก็ใช้คำสั่ง ascii นะครับ
เพราะ bin จะส่ง 8 bin
แต่ ascii จะกำหนดให้ส่ง 7 bin เท่านั้น
put bg.gif หมายถึง ..
ส่งแฟ้ม bg.gif ไปใน burin.8m.com
ถ้าจะส่ง index.html ก็ใช้คำสั่งว่า
put index.html เท่านั้นเอง
ls *.gif หมายถึง ...
แสดงรายชื่อแฟ้มใน server ที่มีนามสกุลgif
ถ้าแสดงทั้งหมดก็ใช้ ls เฉย ๆ ครับ
bye หมายถึง เลิกการทำงาน

การเพิ่ม FTP user ให้เข้าใช้ Windows 2003
    
    1. Make folder for new user
    2. Open Active Directory Users
    - New, User (put First name + User Logon Name and put Password)
    - cancel check on User must change ..
    - make check on password never expires
    3. Open IIS
    - Select Default FTP site
    - New Virtual Directory
    - Select directory for new user
    - Make check on write and read
    4. Open Folder
    - Right click on folder
    - select Sharing and Security
    - select Security and Add user
    - Make check on write and Modify
    5. Start testing
    - ftp localhost
    - lcd c:\windows
    - put win.ini
    - ls
    - del win.ini
    - bye
    

รวมข้อมูลเรื่อง FTP Secure ที่ใช้ SSL
    
    ทดสอบใช้ Filezilla หรือ Smartftp
    - http://www.smartftp.com/download/
    - http://filezilla.sourceforge.net
    - http://en.wikipedia.org/wiki/FileZilla
    - http://www.smartftp.com/ftplib/download
    - http://download.pureftpd.org/pub/pure-ftpd/doc/README.TLS
    - http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html มี putty ให้ download
    24works.com มี FTP แต่พบปัญหา List จาก ADSL
    - FTP, FTP AUTH TLS ได้ แต่ List ไม่ขึ้น
    - FTP over SSL/TSL, SSL, SSH2 ไม่ได้
    - http://help.godaddy.com/article.php?article_id=1242&topic_id=&&
    - http://help.godaddy.com/nonhtml/File/filezillaftp.pdf
    thaiall.com (hypermart.net ไม่มี SSL หรือ TSL สำหรับ ftp เข้าไป)
    - FTP
    - FTP over SSL/TSL, SSL, SSH2, TSL ไม่ได้
    - http://www.hypermart.net/knowledgebase/read_article.bml?kbid=998
    yn1.yonok.ac.th (ใช้ใน ADSL ไม่พบปัญหา)
    - FTP ไม่ได้
    - เปิด FTP SSL, SSH2 และ TSL
    - vsftp + ssl
    

แนะนำเว็บใหม่ : แสดงผลการจัดอันดับ
รักลำปาง : lampang.thcity.com : thailandhosting.net : topsiam.com : cookkoo.com : โยนก
ศูนย์สอบ : รวมบทความ : Download : yourname@thaiall.com
ติดต่อ ทีมงาน ชาวลำปาง มีฝันเพื่อการศึกษา Tel.0-1992-7223