Page 1 of 1

PHP import won't work completely

Posted: Mon Jul 06, 2009 9:20 am
by uncleunvoid
I have a php/html page that is supposed to tell flash the login details for a site.

I created a getAutoLogin.php which gets the details from the server and defines two variables username and password to be inserted into the flashvars.

the getAutoLogin.php does it's job fine, i traced teh variables. Yest when I import the php into my html page, then it stops working.
Anyone?


PHP Code:

Code: Select all

<?php 
include "../../../cgi/php/80days/getAutoLogin.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <title>80DAYS - a global derive</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <style type="text/css" media="screen">
            body { margin:0; text-align:center; }
            div#content { text-align:left; }
            object#content { display:inline; }
        </style>    
        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
            var flashvars = {
                username: "<?php print $username;?>",
                password: "<?php echo($password);?>"
            };
               swfobject.embedSWF("test2.swf", "content", "1060", "630", "9.0.115","expressInstall.swf", flashvars);
        </script>
    </head>
    <body background='patterns.png'>
        <div id="content">Alternative content</div>
    </body>
</html>
file is called autologin.php

Re: PHP import won't work completely

Posted: Mon Jul 06, 2009 11:02 pm
by Eric!
Either the variable names are wrong or blank, or your include path is wrong and the warning is not displayed.