|
| 27 Jul 2016 09:31 AM |
sorry about a link, forum wont let me post PHP lol.
http://hastebin.com/tevehuguna.xml
i'm struggling creating a form that posts data to a text document which is definitely in my server.
can anyone help? thanks alot.
|
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jul 2016 10:57 AM |
$file = 'people.txt'; // The new person to add to the file $person = "John Smith\n"; // Write the contents to the file, // using the FILE_APPEND flag to append the content to the end of the file // and the LOCK_EX flag to prevent anyone else writing to the file at the same time file_put_contents($file, $person, FILE_APPEND | LOCK_EX);
|
|
|
| Report Abuse |
|
|
|
| 27 Jul 2016 10:58 AM |
I got the above from the php net website.
|
|
|
| Report Abuse |
|
|