PDA

View Full Version : cheating on php.


HelpVirius
02-12-2004, 06:08 PM
well, im confused. Can you embed php within a mc? and if so does your wsp have to be runnin a server like apache with php installed? or does flash already have php functs workin in it solo?

like i wanna put this ip blocker script into a movieclip. My webspace provider does not have php instealled on their server. will my php in my flash movie still work on the web?

xxlm
02-13-2004, 12:08 AM
It's not this way.
Use loadVars object to load and/or send var by post/get methods to your php script.

Don't forget: Flash is the interface, php the server side scripting.

Good luck ;)

fgf
02-13-2004, 05:59 AM
php - server side

flash - clientside

Interaction happens as follows

1 flash sends (posts as in a typical html form) data to a url of a php script

2 php reads this data just as though it was html form data and processes it as it is scripted to do.

3 php puts any out put it is scripted to put out to its standard out put. Normally this would be text/html output and would go directly to a web browser as a webpage. If it is for flash it should be in the format &variable1=This is a string variable&variable2=This is another variable.

4 If the command flash used to send the data meant it was listening for a reply the output of the php script with be accepted back into flash and any onload handlers will be activated to run whatever actionscript is required.

fgf

HelpVirius
02-13-2004, 08:45 AM
k thx d00dz.

Well i see what you are saying but there is no way to embed a php script within a flash document....u have 2 run a external file...well thats a bit less protection..oh well :) thx again :)

xxlm
02-13-2004, 08:57 PM
Flash == client side.
Client side --> you CANNOT EXECUTE SERVER SCRIPT SIDE...

So no there is no way....

Sorry