Menu

Work with data.dat

Help
nipper
2006-05-22
2013-06-03
  • nipper

    nipper - 2006-05-22

    Instead of downloading data.dat file and working with in Excel, is there a php program I can use to add, modify, etc and save the data file online.

    Thanks
    Brent

     
    • TNTEverett

      TNTEverett - 2006-05-22

      Your form admin allows you to display, print, and delete. 
      I have modified mine (for one form) to display, sort by column up/dn, print, print all, delete.  The add function is really the form1.html. 

      Feel free to modify your admin to do whatever you would like. 

      For most things your edit with Excel should be easy and work just as well as any php programming you would have to do. 

       
      • nipper

        nipper - 2006-05-22

        thank you
        Why is the file format .dat instead of csv?

        bb

         
        • TNTEverett

          TNTEverett - 2006-05-22

          Comma Separated Value (CSV)
          The data file is not comma separated. 

           
          • nipper

            nipper - 2006-05-22

            ok thanks a million

            bb

             
            • nipper

              nipper - 2006-05-23

              Is there a php or other online program to add modify the data.dat file? I have several folks who need access to the data.dat info at any give time. I can update the file with the additional information and email the others that changes have made. Currently, I am using Excel and ftp back and forth and interested in finding and using an online solution.

              thanks a million

               
              • TNTEverett

                TNTEverett - 2006-05-23

                Every form is different, therefore every data.dat file is essentially unique.  Your form is the method for adding data, your form admin is the method for viewing and deleting. 
                There isn't any available php program for combining these functions.  You are free to create your own program but this is probably not an option you are prepared for.  In addition there are some issues you would have to resolve for multiple users accessing the same data.dat file.  Under normal circumstances the chances of multi users accessing the same data file at the same instant is minimal.  However if this does occur there is no guarantee that one user can not corrupt or clober the data file for the other user (who opens the file, who writes and closes the file, and in what order). 
                The way to manage this more effectively is to have your data stored in a MySQL database instead of a text file (data.dat).  MySQL manages the mutli user thing and you also have the option to use something like phpMyAdmin to do the other things you wish to do (multi user, add, delete, and view all at the same time).  The phpMyAdmin requires some knowledge on using the application but there would not be any programming required. 

                 

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.