hello,

i used to had a working methode but it doesn't work now, and i have no idea why.

i'd like to create a flash panel with text.
the text is kept in a txt file and sent by php to flash.
(it works fine.)

i have an other flash which is for rewrite the txt via another php.
this is what went wrong. when I'd like to update the txt it becomes empty and 0 kB.

second php:

<?php
$fa = fopen( "inputtext.txt", "w" );
fwrite( $fa, $readingdata );
fclose ( $fa );
?>

second flash:

readingdata = this.loadVariables("readingdataphp.php"); 

updatebutton.onRelease = function() {
	_root.loadVariables("writingdataphp.php", "POST");
}

i hope you can help solving the problem. thank you!

Member Avatar for iamthwee

Maybe you're not using append mode in php, which is why it is just overwriting??

Member Avatar for rajarajan2017

Use echo to output the data sent by the flash. So you could get the confirmaiton whether really it sends the data or not?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.