|
-
November 15th, 2005, 04:19 AM
#1
Text File
Hi guys
I need to interact with a text file from Javascript code
This file resides in the server
Do you know some code to read from text files and write into them?
Thanks in advance
-
November 15th, 2005, 06:41 AM
#2
Re: Text File
Javascript is running on the client station, and has no access to the server.
The only thing that can be done is a dialog between the client and the server, but that requires some code on the server side, and that code will not be written in javacript, but in an other language, .e.g. PHP, java, etc.
-
November 15th, 2005, 09:51 AM
#3
Re: Text File
And if you do have access to use PHP on your server look into the following commands with PHP.
fopen
fclose
fread
fgets
fwrite
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|