Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-21-2011 #1
Writing data of html form to USB file in Fedora
The browser opens the .html, .php, .pl, .js, .asp files from the disk without any problems, but doesn't want to write anything ... even on the USB.
If you have any fresh ideas.
- 08-23-2011 #2
- Join Date
- May 2011
It sounds like you are asking for help writing CGI script hosted on a local website to write a text file a locally mounted USB disk, yes? Can you show examples of what you've tried? My first thought would be that the user running the webserver (apache, nobody, etc.) does not have permissions to write wherever you are trying to write the file. You might want to have a sudo entry for a custom script you write that can be called by your CGI script to:
a) get user input in the form,
b) mount the USB disk,
c) write the data to the file on the USB disk,
d) sync the filesystem on the USB disk,
e) unmount and eject the USB disk
If you are experiencing errors with your form, be sure to check the appropriate logs for errors (e.g., the default Apache log locatiom is /var/log/httpd/error_log). Also check the system log for errors (/var/log/messages).
- 08-23-2011 #3
RE: What am I trying to do?
I wanted to make a user friendly interface for completing a large database by using the browser offline, but I solved the problem in another way.
I made a template in Word that saves the data directly in machine form (.csv file), so for now I 'ended up my career as offline web designer'.
Thank you for the response.