Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i would like to make a notepad to save and load things from a text file stored on my webserver. I would like to have 3 buttons, "save", "load" and "refresh".
I am not good with php and i have found the following parts of code that would probably be useful in creating this.Code: Select all
<?php
$myFile = "71637213418#$%.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "$text;
fwrite($fh, $stringData);
$stringData = "----";
fwrite($fh, $stringData);
fclose($fh);//sending
php?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]