  | |  | problems running php + flash in local server | problems running php + flash in local server
2004-02-18 - By web.account
Back I have a flash movie that is supposed to call a .php file (using
loadVariablesNum). This php is supposed to simply create a txt file and
write something in it.
The problem is that this is working 100% on my remote server but is not
working on my local testing server.
I have the feeling that flash is not sending the variables to php. But it is
getting variables back from the php correctly.
Here is the contents of the PHP file:
<?
if(!$fp = fopen ($filename, "w+ ")){
echo ( "&msg=Error opening file ($filename)! ");
exit;
};
if(!fwrite($fp, $texto)){
echo( "&msg=Error writing file ($filename)! ");
exit;
};
fclose($fp);
if ($fp) {
echo ( "&msg=File successfully saved. ");
} else {
echo ( "&msg=File couldn 't be changed. ");
}
? >
Inside the flash movie I have a button with the following actionscript:
on (release) {
loadVariablesNum( "gravatxt.php ", " ", "POST ");
url = filename;
nextFrame();
}
At the stage I have 3 text fields. The first one with the var set to
"filename ", the second one with var set to "texto " and the third one with
the var set to "msg ".
As I said before it works 100% on the remote server, but locally it gives me
the following error (inside the "msg " field):
Error opening file ()!
I believe that the php is not getting any variables from my flash movie,
because there is nothing between the parenthesis on the error message.
I 'm running PHP 4.2.3 - Apache 1.3.27 on WinXP SP1.
I hope somebody is able to help me on this one. Please let me know if you
need anymore info.
Thank you very much for your time and sorry about my poor english.
Cassiano
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104642
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |