View Full Version : PHP to FLASH
Garra
07-28-2001, 10:00 PM
Hi,
do you know if you can import a variable from PHP 4 to Flash 5?
Thanks a lot =)
Jesse
07-29-2001, 02:58 AM
see the loadvaraibles interaction tute
davekarterr
07-31-2001, 12:14 PM
Ok, I tried with loadvariables..
My problem comes from ez-publish PHP engine.
I need to know how to get a clean &variable=value format with no "headers" and stuff like that.
If I get the variables from a txt file there is no problem. But when I try to get an echo or print from php file there is some rubbish attached that not allow flash to get the variables..
pfff.. some idea?
thanks
snowdude
08-01-2001, 07:26 AM
Hum i'm not sure what rubish your talking about what about just something like:
<?
print "variable=value&var2=value2";
?>
this is basically the same as a text file with this printed in it:
variable=value&var2=value2
Jesse
08-01-2001, 07:45 AM
I've never experience this, what 'rubbish'?
davekarterr
08-01-2001, 10:53 AM
what I mean with rubbish is:
meta tags like:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
I ´ve solved this actualy.. but what is driving me crazy is the blank space and the square symbol I get at the first line..
I´ve been getting some info from the ez-publish developers team and should be something comming from a class or datasupplier..
my php look like this:
<?
include_once( "ezuser/classes/ezuser.php" );
$user = new eZUser();
$user = $user->validateUser( $Username, $Password );
if ( $Action == "login" )
{
if ( $user )
echo "&result=OK";
else
echo "&result=ERROR";
}
?>
those lines send the variable result with a value to flash perform login or not login action
what I get is:
square symbol
result=OK
Any idea to kill the first line?
Jesse
08-01-2001, 11:06 AM
somewhere you're obviously adding \r or \n which you'll need to remove.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.