3 simple and easy scripts in php to insert / read data from a flat file
$30-5000 USD
Cancelado
Publicado hace más de 12 años
$30-5000 USD
Pagado a la entrega
I need someone to write 3 simple php scripts. This project is simple and so delivery time is taking into account along with your price. (the sooner the better). One scripts insert data into a flat file. Another script reads the data from the file. A third script reads data from 4 files.
Apply if you have time to work on it this week. Apply if you have experience in php. Thanks
## Deliverables
I need someone to write 3 simple php scripts.
1. A script to insert data into a file. Data has the same format as in the attached file. The insert has to be done using the url: Something like [login to view URL],field3,field4,etc? You get to decide what and how to put all data in the url
Thus user enters [login to view URL],field3,field4,etc? and the data is inserted into the file
The followings are the fields in the file:
-Number, this is a consecutive number, the script has to read the last number in the file and add 1 (if the last entry says 1, the new entry should be 2 = 1 +1. This is to have a consecutive number in the file)
-Date1,Date2,UserIP,UserAddress,Name,Lastname,Address1,Address2,Date start,Date end: All these fields come in the url
A login/password or key or something else (your call) must be used in the url to restrict entries (you decide how to do it, you can make something like <[login to view URL],password,field2,field3,field4>)
Going to <[login to view URL]>.php must return an "error 444" message
Using the wrong login/password/key must return an "error 555"
If the file is updated successfully, it returns a "complete" message
If the file is being used and cannot be opened, the script returns a "busy" message
The file may grow to have 1000 lines
You need to tell me how to protect the file and the scripts from hackers (file cannot we opened from browser - I need file settings/permissions for the script and the file i.e. RWW and for the directory where the file is located i.e. filedir)
The file will be in a directory in a linux webserver, last version of php. Directory name is filedir
Optional:
Worker will tell me if it is possible to protect the directory where the file is located with .htaccess and still use it using <[login to view URL],password,field2,field3,field4> - the final user is another application that generates the url, so automatic authentication is necessary
1. A script that reads the file and show the contents in a html table. A login/password/or key is required to protect the access. So I go to <[login to view URL],password> and see the content of the file in html
This script will be in the directory read and the file will be in the directory filedir.
Use the same error codes as in 1
Direct access "error 444" message
Using the wrong login/password/key must return an "error 555"
If the file is being used and cannot be opened, the script returns a "busy" message
You need to tell me how to protect scripts from hackers (I need settings/permissions for the script and for the directory where the script is located i.e. read)
1. I will have 4 files like the attached one (different names). I need a script that reads the last entry from the files, and display the consecutive number
For example, the consecutive numbers are as follows:
File a, 3
File b, 4
File c, 1
File d, 0
The scripts open the files and show this 3+4+1+0=8 filenames are filea, fileb, filec, filed:
Total 8
File a, 3
File b, 4
File c, 1
File d, 0
A login/password/or key is required to protect the access. So I go to <[login to view URL],password> and see the content of the file in html (No table, just print the output)
This script will be in the directory read and the file will be in the directory filedir
Use the same error codes as in 1
Direct access "error 444" message
Using the wrong login/password/key must return an "error 555"
If the file is being used and cannot be opened, the script returns a "busy" message
You need to tell me how to protect scripts from hackers (I need settings/permissions for the script and for the directory where the script is located i.e. read)