|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[Flash]-->[php]--->[Text]
I am trying to get text passed from flash to php to be written to an existing text file on my server.
i have set the chmod for the file directory. The flash reports that the information has been successfully written but when i open the text file it is still empty... any ideas? i have an input text field eith the variable name of 'msg'. and the following code on a button: Flash code: on(release) { status="SENDING..."; this.loadVariables("/PHP/write.php","POST"); } PHP code: <? error_reporting(0); $file="data/log.txt"; $fp=fopen($file,'w'); if (!$fp) die ("status=Can't+open+the+file+check+your+privelleges."); fwrite($fp,"$msg"); fclose($fp); echo ("status=Text+updated."); ?> thanx, neb ![]() |
|
#2
|
||||
|
||||
|
I don't know off the top of my head, but break it up: make a quick form to post to the php what the flash should be doing. If it works, the problem is in the flash, if not, the php.
if the flash is working correctly, go post this in a php forum. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > [Flash]-->[php]--->[Text] |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|