Run php file

Hi,

I want my flash file to run a php file, any ideas how to do this?

thanks
g.

Something like this, perhaps?


getURL("yourphpfile.php");

thanks, that does work, but it opens the php file is there no way to do it silently?

I think you do this something like this:


var lv = new LoadVars();
lv.whatever_you_want_to_send = x_value;
lv.sendAndLoad ("file.php", lv, "POST");

thanks, i will give it a go, i don`t want to send anything to the php, just run it…

You may need to use AJAX in your html and ExternalInterface in Flash to call your AJAX function. Not much into Flash these days.

I actually found out you can use the xml object to load a php file! pretty neat and simple