#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2002
    Location
    Romania
    Posts
    5
    Rep Power
    0

    win nt 40 + apache::can't read php generated variables into Flash MX


    Hello everybody!
    This is my first message on this forum.
    I have the following problem:
    System:
    Win nt 4.0 service pack 6
    Apache
    PHP
    MySQL
    Flash MX
    The problem:
    reading php generated variables from Flash
    The php script looks like this:


    PHP:--------------------------------------------------------------------------------

    <?
    $result = $HTTP_GET_VARS['input'] +1;
    print "result=$result";
    ?>

    --------------------------------------------------------------------------------

    When I enter in the browser's address window the following address:
    <http://localhost/phpFile?input=100>
    In the Browser window appears:
    <result=101>

    So the php works fine with Apache!
    The next step would be to read the "result" variable into Flash, using the "loadVars()" method.
    This part doesn't work.

    What could be the problem?
    Win NT permissions?
    Apache settings?
    PHP .ini settings?
    I hope that somebody has the answer.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jul 2000
    Posts
    669
    Rep Power
    15
    It could be any number of things.

    What version of PHP are you using? I find that using $_REQUEST for PHP 4.2 and above instead of $HTTP_GET_VARS works good. Also what does your actionscript look like? Maybe the problem lies there.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    191
    [.RO]NIN, please donīt cross-post. Delete this post. (Click on "edit" on top here, check "delete" on the left and press the "delete" button.)

    win nt 40 + apache::can't read php generated variables into Flash MX

    freddydoesphp, there is also some code.

IMN logo majestic logo threadwatch logo seochat tools logo