Hi all - this is going to seem like a stupid question, but I'm essentially a Flash developer! I've written the following code:
<?php
function writefile($filename, $data, $mode)
{
$fp = fopen($filename, $mode);
fwrite($fp, $data);
fclose($fp);
}
writefile("date.txt", Date("H:i:s d-n-y\n"), "w");
?>
I want to insert the text "mytext=" before the date in the text file. I keep trying different ways of typing it, I know it has to go on the last line but I'm buggered if I can get it to work!!!!!
Any help would be greatfully received!
Thanks.