Hello
I'm no coder ,
How do you edit a txt file from browser and save it ..
Please if any can give me a example
thx
Edit file from Browser.
Started by xsell, Nov 29 2009 10:41 PM
3 replies to this topic
#1
Posted 29 November 2009 - 10:41 PM
|
|
|
#2
Posted 30 November 2009 - 12:45 AM
Are you talking about with php? You could always use the fopen feature...
Eg:
Edit: Also you must set permissions on that file for the script to add the text..
Eg:
<?php
$handle =
fopen("Text.txt", "a");
fwrite($handle, "Text");
fclose($handle);
?>
Edit: Also you must set permissions on that file for the script to add the text..
#3
Posted 04 December 2009 - 09:21 PM
I totly forget about this Post . Thank you Seanstar .
I have already Found way to do it .. thx anyway
I have already Found way to do it .. thx anyway
#4
Posted 09 December 2009 - 08:48 AM
fopen fopen("Text.txt", "a"); is not to edit the text.txt file but append the text in the file. To replace with new edited text, you shold use fopen("Text.txt", "w+");


Sign In
Create Account

Back to top









