MrPinkPanther
28-03-2009, 10:04 PM
I would rather not pay because I know its a real simple job, I just dont know PHP well enough but I will of course pay if need be. Heres the script:
<?php
$myText = $_POST ['MyText'];
$myFile = "test.txt";
$fh = fopen($myFile, 'w') or die("can’t open file");
fwrite($fh, "My text is: ");
fwrite($fh, $myText);
fclose($fh);
?>
I need an edit so a folder is created with the text of the imported variable MyName (if the folder does not already exist). Inside that a text file will be created, named as the text of the imported variable of MyFile.
myText is then written in this text file.
So for example my application says that:
MyName = George
MyFile = GeorgesFile
myText = Helloooo, this is Georges file
So a folder is created called George and inside it is a text file called GeorgesFile and written in that is Helloooo, this is Georges file
Moved by ReviewDude (Forum Moderator) from 'Web Market'.
<?php
$myText = $_POST ['MyText'];
$myFile = "test.txt";
$fh = fopen($myFile, 'w') or die("can’t open file");
fwrite($fh, "My text is: ");
fwrite($fh, $myText);
fclose($fh);
?>
I need an edit so a folder is created with the text of the imported variable MyName (if the folder does not already exist). Inside that a text file will be created, named as the text of the imported variable of MyFile.
myText is then written in this text file.
So for example my application says that:
MyName = George
MyFile = GeorgesFile
myText = Helloooo, this is Georges file
So a folder is created called George and inside it is a text file called GeorgesFile and written in that is Helloooo, this is Georges file
Moved by ReviewDude (Forum Moderator) from 'Web Market'.