»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 08-25-2003, 12:23 AM   #1 (permalink)
Registered User
 
firewolf's Avatar
 
Join Date: Aug 2003
Location: Canada
Posts: 197
firewolf is on a distinguished road
Send a message via ICQ to firewolf
Flash & PHP Help!!!

I'm making my website flash! But I'm using a free hosting website (Tripod), but they don't allow php. So I want to just put the .php file on a server that belongs to a friend that does support php.

I made a formmailer in the flash, and have it so that it links to the php on his server. But the problem is, it doesn't work. It will work when I put all the files on his server, but not when i just have the files on the tripod server and the php on his server.

http://www.hisserver.com/formmailer.php <<< let's pretend this is the location of the php file. If I use that or www.hisserver.com/formmailer.php it does not work. But if I upload (as i said above) all the files to his server and use formmailer.php it works. Why won't it work when I try and link it?

this is part of the code i used in flash for it (it's on a button) and all that i have tried...

Code:
on (press) {
loadVariables("http://www.hisserver.com/formmailer.php", "", "POST");
     gotoAndStop(2);
}
Code:
on (press) {
loadVariables("www.hisserver.com/formmailer.php", "", "POST");
     gotoAndStop(2);
}
Does anyone know how I can "link" the php so to speak?

-FireWolf

firewolf is offline   Reply With Quote
Old 08-25-2003, 09:38 AM   #2 (permalink)
Guest
Guest
 
Posts: n/a
Hi firewolf

I don't have much experience with PHP, sorry.. but, read this about accessibility from other domains.. perhaps you have some clues there?

http://www.macromedia.com/support/fl...urity.htm#load

Here maybe a workaround: http://www.macromedia.com/support/fl...ad_xdomain.htm

If you can't find further help here, I'd recommend visiting either or both http://actionscripts.org/ or http://were-here.com/homepage/default.asp Both have very knowledgeable and helpful Flash experts.

GL and please post back if you find a solution
  Reply With Quote
Old 08-25-2003, 11:59 AM   #3 (permalink)
Registered User
 
firewolf's Avatar
 
Join Date: Aug 2003
Location: Canada
Posts: 197
firewolf is on a distinguished road
Send a message via ICQ to firewolf
Good News and bad news, I have found the answer, bad news is, it's an answer I don't like, LoL...

"For security reasons, a Macromedia Flash movie is not permitted to load data from a different Internet domain. Attempts to access cross-domain data or data returned to Macromedia Flash Player from another domain will be ignored by the Macromedia Flash Player"

"For security reasons, a Flash movie playing in a Web browser is not allowed to access data that resides outside the Web domain from which the SWF originated. This applies to any ActionScript command, or object, that can send or receive data, including loadVariables, the XMLSocket Object's methods and the XML Object's send and sendAndLoad commands."

I kind of figured that was the reason, but I didn't think they would do such a thing. Security reasons? Well, passwords are secure? Why could they set something up where it could be allowed? Lazy bums! LoL.

Anyway, thank you for the help Socalgal! And I will come back and post hier if I find a solution

-FireWolf
firewolf is offline   Reply With Quote
Old 08-25-2003, 01:13 PM   #4 (permalink)
Guest
Guest
 
Posts: n/a
hmm.. So I guess that 'workaround' link didn't work either, eh.

Sorry to hear.. but yes, if you do find a solution, please let us know. And, YW.

Cheers
  Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 12:32 AM.