View Single Post
  #1 (permalink)  
Old 08-18-03, 08:08 PM
gamextremer2003 gamextremer2003 is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Writes to a text file

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
?>
__________________
Gamex

Last edited by gamextremer2003; 08-18-03 at 09:51 PM.
Reply With Quote