I imagin it would look something like:
fwrite:($textfile, $text message)
But what about
- Writing to the end of the file
- adding spaces between writings
- setting what to write, such as if you want it not only to write a string, but a set message.
-----
I've heard rumors Javascript can't write to files, so how would I give php commands from a .
js file?
-----
-----
Another question just came up...I'm working within a .
js file, and how do I send a php file information?
For example:
(jsfile.
js)
function send_message_to_php_file()
{
(((unknown code to send the php file the information "message_from_java")))
}
(phpfile.php - no need to write anything from php, I have this covered)
<?php
// simple display of the information the javascript file sent me
echo $message_from_java
?>