| | |
Write to and read from clients computer
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Oct 2009
Posts: 7
Reputation:
Solved Threads: 0
I have a PHP program that makes a simulation of an aircraft motion (for technical studies). It requires quite a lot of input data. Therefore it would be advantageous to be able to save that data on the clients computer and recall it when used.
Of course there is a need to save many different cases and to choose from a list to recall, but that is another story.
My question:
How do I write to and read from a clients computer?
Of course there is a need to save many different cases and to choose from a list to recall, but that is another story.
My question:
How do I write to and read from a clients computer?
0
#3 Oct 20th, 2009
Save the client's ip (or session cookie id) on the server in the database when the entered information and the date.
When that computer visits the website again, you can poll the database and provide that data.
When that computer visits the website again, you can poll the database and provide that data.
CodeJoust! Design + Development - Proud User of Ubuntu
0
#5 Oct 20th, 2009
Nope. Unless you use some brand-new browser capiabilities, or flash.
If it's just a bunch of fields, you can try to save it to a session cookie variable, or cookies, but beware that cookies are limited in size and are rather hard to manage.
You could just keep session cookies that link to the database, and the database entries can 'expire' on a cron job php script (just by checking the created_at date and seeing if it's so and so days afterwards).
You could also save it to a php disc session (look at php.net for instructions).
See http://www.developertutorials.com/tu...711/page1.html also...
If it's just a bunch of fields, you can try to save it to a session cookie variable, or cookies, but beware that cookies are limited in size and are rather hard to manage.
You could just keep session cookies that link to the database, and the database entries can 'expire' on a cron job php script (just by checking the created_at date and seeing if it's so and so days afterwards).
You could also save it to a php disc session (look at php.net for instructions).
See http://www.developertutorials.com/tu...711/page1.html also...
CodeJoust! Design + Development - Proud User of Ubuntu
•
•
Join Date: Oct 2009
Posts: 7
Reputation:
Solved Threads: 0
0
#6 Oct 20th, 2009
Excuse me for beeing persistent; maybe I have not given enough information ...
The data has the shape of six files. They are very small, seen as computer files, but seen as figure tables to fill by hand, a couple of them could seem a bit scarey. You do not want to fill them in every time you want to repeat a simulation with some minor change ... or simulate a quite different case.
Is it really so that PHP does not provide a standard method for upload and download files?
The data has the shape of six files. They are very small, seen as computer files, but seen as figure tables to fill by hand, a couple of them could seem a bit scarey. You do not want to fill them in every time you want to repeat a simulation with some minor change ... or simulate a quite different case.
Is it really so that PHP does not provide a standard method for upload and download files?
0
#7 Oct 20th, 2009
•
•
•
•
Excuse me for beeing persistent; maybe I have not given enough information ...
The data has the shape of six files. They are very small, seen as computer files, but seen as figure tables to fill by hand, a couple of them could seem a bit scarey. You do not want to fill them in every time you want to repeat a simulation with some minor change ... or simulate a quite different case.
Is it really so that PHP does not provide a standard method for upload and download files?
GCS d- s+ a-->? C++(++++) UL+++ P+>+++ L+++ E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r y+
PMs asking for help will not be answered, post on the forums. That's what they're there for.
![]() |
Similar Threads
- how to write and read array record into file?? (Pascal and Delphi)
- Write and Read text files (Java)
- create, write & read file to/from folder (C++)
- can't read all the memory of my computer (Windows NT / 2000 / XP)
- My computer won't load... (Troubleshooting Dead Machines)
- Disk Read Error while booting Windows (Windows NT / 2000 / XP)
- Using the STL LIst Container, how do I create, write,read, and store in file. (C++)
- toolbars, read-only folders, and mysterious exe's OH MY! (Viruses, Spyware and other Nasties)
- How can you tell how fast a hard drive can write and read? (Storage)
Other Threads in the PHP Forum
- Previous Thread: problem with my_sql_db
- Next Thread: Need help with sending Bcc to emails fetched from database
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube






