Tuesday, August 28, 2018

006 Free php Script for a Personal Accounts Manager


Requirements for using offline on a laptop / p.c.: 1. Apache2 server, with php support. 2. Suitably changing the Configuration of the 'public_html' (or any other folder, for use as localhost, by giving Read, Write, Create files. For entering transactions, a simple Text Editor such as Notepad, Gedit, Geany can be used, and the transaction file is to be saved by giving 'mychoicename.txt'. For preparing accounts, Trial Balance, Income and Expenditure, Balance Sheet, the a .php file name (Example mychoicefilename.php) in browsers such as firefox.

Where is the script?

Ans: The following is the script shown in red color in the following Text Area. Press 'Control A', select it, copy it to clip board, then paste it in a mychoicefilename.php file opened in a Text Editor. Save it as a .php file. This file is to be saved in in the 'Public_html' folder (or any other similar name) or in a new folder within the Public_html folder which is configured as 'localhost' in apache2 and php settings.

Read write, create file permissions are important.

Question: Will the Script Work in Windows / Linux / Mac. ?


As the script is browser based, it should work platform-independently. I have tried in Linux-Ubuntu-15.04 and Windows. It worked.



Is there any method/structure for each transaction to be entered in the txt file of transactions?


Ans: The structure is important, becausing we shall be using a mychoicefilename.txt as a sort of database. In a formal database we come across rows and columns in tables. Those who are familiar with DBMS, RDBMS, sqlite, mysqlite etc. know it.

To avoid the complexities of using databases, particularly when confidentiality and security are not important, we are using a simple txt file separated by delimiters, as database.

In our Manager, we are using '2 line feeds (double line spacing) to separate one record from another record. (Each transaction is taken as a record, and entered in double line spacing.)

Incomplete.