Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: วานนี้มาแนะนำการใช้ txtsql

  1. #1
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    17


    วานนี้มาแนะนำการใช้ txtsql

    ว่าไปมานก็น่าสนมากเลยนะครับผมลองเล่นดูแล้วมีความสามารถเหมือนกับ mysql เกือบทุกประการเลยครับแต่ที่น่าเสียดายคือสามารถอ่าข้อมูลทางเบาเซอว์ได้นะครับ และความปลอดภัยของข้อมูลมีน้อยด้วยครับ

    อันแรกที่จะแนะนำเลยนะครับคือการใช้ต่างๆ http://txtsql.sourceforge.net

    แล้วเดี่ยวผมจะมาอธิบายให้ฟังบ้างก็แล้วกานนะครับ

  2. #2
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    17


    Re: วานนี้มาแนะนำการใช้ txtsql

    อันแรก็น่าจะเป็นการเรียกใช้ class ของ txtsql นะครับ ว่าการเลยนะ

    <?php
    include('./txtSQL.class.php'); ///เรียกใช้คลาสของ txtsql
    $sql = new txtSQL('./data'); สร้างที่เก็บข้อมูลใหม่ครับ (ไว้เก็บข้อมูลของเรา)
    $sql->connect('root', 'password')///การใช้คำสั่งติดต่อฐานข้อมูลครับ

    ?>

    ง่ายไหมละครับเหมือน Mysql เลยละครับ

  3. #3
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    17


    Re: วานนี้มาแนะนำการใช้ txtsql

    ลืมบอกการ disconnect ครับ ง่ายๆๆๆ เลยละครับ
    <?

    $sql->disconnect();

    ?>

    แค่นี้ละครับ

  4. #4
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    17


    Re: วานนี้มาแนะนำการใช้ txtsql

    ต่อไปก็การสร้าง user ใหม่ในการอนุญาตเข้าใช้ txtsql
    1.การสร้าง
    <?php
    เพิ่มชื่อผู้ใช้ user และ pass คือ password
    $sql->grant_permissions('add', 'user', 'password')
    ?>

    2.การลบครับ
    <?php
    ลบชื่อผู้ใช้ user และ pass คือ password
    $sql->grant_permissions('drop', 'user', 'password')
    ?>

    3.การแก้ไข password
    <?php
    แก้ไขผู้ใช้ user โดยเปลี่ยนพาสเป็น txtsql
    $sql-grant_permissions'edit', 'user', 'password', 'txtsql')
    ?>

    แค่นี้ละครับง่ายไหมละ ไงถ้าสนใจมากๆๆ ก็อ่านที่ ความคิดเห็นแรกนะจะมีคู่มือนะ

  5. #5
    Anonymous
    Guest


    Re: วานนี้มาแนะนำการใช้ txtsql

    txtsql มันคืออะไรหรือค่ะ เคยได้ยินแต่ mysql สอนมั้งซิค่ะ

  6. #6
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    17


    Re: วานนี้มาแนะนำการใช้ txtsql

    :: What is txtSQL?
    txtSQL is a class of functions designed and implemented to handle flat file databases in a more efficient, and complex manner. txtSQL acts like an actual DBM, where it is designed to handle databases and table similar to those handled by the mysql dbm; txtSQL is flatfile, and does not require any outside plugins, or third-party software to work. It can create tables, drop tables, rename tables, alter tables, describe tables, create databases, rename databases, drop databases, select, insert, delete, update and much much more. But the best part of it all... is that it's an open source project which means that it's completely free!
    <<==== ผมแปลมะค่อยเท่าไรครับ

    ตามภาษาผมละกันนะครับ txtsql คือการเก็บข้อมูลด้ย txt ธรรมดานี้เองละครับ แต่จะมี function ไปควบคุมอีกทอดหนึ่งจึงทามให้ลักษณะการทำงานคล้ายๆกับ Mysql แต่ระบบจะมีปัญหาตรงที่ถ้าใครรู้ที่เก็บไฟล์ข้อมูลละก็แน่นอนครับเขาสามารถเปิดดูได้ผ่านทางเบราเซอว์เลยละครับ แต่ถ้าเก็บข้อมูลที่คิดว่าไม่สำคัญอย่างเช่น ระบบสมุดเยี่ยม เว็บบอร์ดผมคิดว่าน่าใช้ที่เดียวละครับ

  7. #7
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    Re: วานนี้มาแนะนำการใช้ txtsql

    สามารถทำงานได้เหมือน mysql แต่เก็บข้อมูลแบบ textfile อืม...เป็นโปรแกรมที่น่าสนมากครับ

  8. #8
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    17


    Re: วานนี้มาแนะนำการใช้ txtsql

    ลองเข้าดูนะครับแล้วคุณจะรู้ว่ามานน่าอัศจรรย์แค่ไหน txtsqlAdmin
    มานเป็นตัวย่างนะครับ แล้วลองเทียบดูนะครับว่ามานขนาดไหน
    http://202.44.9.126/~studenmts/txtsql/txtS...Admin/index.php

    user : user
    pass : password

    ห้ามยุ่งกับฐบานข้อมูลผมนะครับกำลังทดอบอยู่นะครับ

    แล้วนี้ก็น่าดูนะครับ
    http://202.44.9.126/~studenmts/txtsql/web/

    มานเป็น CMS ของ txtsql นะครับ สุดยอดเลย

  9. #9
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    Re: วานนี้มาแนะนำการใช้ txtsql

    ตอนนี้ server สามารถเรียกดูแบบนี้ได้แล้วนะครับ
    http://www.citecclub.org/~studenmts/txtsql...Admin/index.php

    http://www.citecclub.org/~studenmts/txtsql/web/

  10. #10
    Junior Member
    Join Date
    Jul 2004
    Location
    Thailand
    Posts
    17


    Re: วานนี้มาแนะนำการใช้ txtsql

    OK เลยครับพี่ อิๆๆๆ ผมโง่อีกละ แล้วพี่คิดว่าไงบ้างละครับ ดีไหมอะ ขอความคิดเห็นหน่อยจิ

Page 1 of 2 12 LastLast

Similar Threads

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •