PDA

View Full Version : PHP Help


cleverdesigner
07-08-2003, 03:41 AM
I did the sixth tutorial on the intermediate level. I was able to get the Flash to work, but now I am not able to get the php script to work. My question is the following:

Does the php file have to be in the same folder as the swf file or does the the php file need to be in a cgi-bin?

Sorry if this is a stupid question. I am new to the forum. Hopefully I have not broken any rules or mores as to how to post on this forum. You help is greatly appreciated. Thanks in advanced.

CD

butterbur
07-08-2003, 03:34 PM
The file path is set in the following:
loadVariablesNum ("mail.php3", 0, "POST");


on (release) {
if (subject eq "" or message eq "" or from eq "") {
stop ();
} else {
lineAdapt();
loadVariablesNum ("mail.php3", 0, "POST");
gotoAndStop (2);
}}


So if mail.php3 lives elsewhere then just just include the path
loadVariablesNum ("another_dir/mail.php3", 0, "POST");

PHP files do not need to go into your cgi bin, save that for .pl files.

cleverdesigner
07-08-2003, 08:05 PM
Thanks for the help. From what I understand, the PHP file is in the same directory as the swf file if the code is :

loadVariablesNum ("mail.php3", 0, "POST");


Thanks for the clarification.

CD