Mailing List
Home
Flash Pro
Extending Flash
Flash Macromedia Developer
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
problems running php + flash in local server

problems running php + flash in local server

2004-02-18       - By web.account

 Back
Reply:     1     2     3     4     5     6     7  

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)