Flash and php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
trem
Forum Newbie
Posts: 1
Joined: Wed Oct 15, 2008 10:35 am

Flash and php

Post by trem »

Hello…I need some help with flash and php. I want to use flash file in php. To be more specific. I have one swf files in Greek version and one in English version , that I want to do is to call each time the right version according the language that user choose. For example, by default the index.php is loads in English version and I want the $lang.swf file to be loaded (because $lang=English) the same I want to happen when the user choose Greek language, the greek swf file to be loaded. How im going to do that. Thank you in advance for you help.!!!
Paul Arnold
Forum Contributor
Posts: 141
Joined: Fri Jun 13, 2008 10:09 am
Location: Newcastle Upon Tyne

Re: Flash and php

Post by Paul Arnold »

How are you planning for the user to switch between languages? Is it going to be a session variable or something that's posted to the page or what?

Say if it was a session you could just name the swf files say english.swf and greek.swf and then call up the filename like:

Code: Select all

 
<?PHP echo $_SESSION['language'];?>.swf
 
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Flash and php

Post by califdon »

Also, how are you presenting the .swf file, as a hyperlink or embedded?
php2all
Forum Newbie
Posts: 3
Joined: Thu Oct 16, 2008 1:32 am

Re: Flash and php

Post by php2all »

<?PHP echo $_SESSION['language'].'.swf';?>

try this



by

sudhakar
Post Reply