A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: PHP files with includes returns garbage characters in result to flash.

Hybrid View

  1. #1
    Member
    Join Date
    Feb 2003
    Location
    Calgary
    Posts
    49

    PHP files with includes returns garbage characters in result to flash.

    Here is the problem I am having;
    My php file is returning garbage characters to flash, but only if there is an include in the php code.

    Example:
    PHP Code:
    <?php

    include("any_included_php_script.php");

    echo 
    "name=value";

    ?>
    returns "%EF%BB%BF%EF%BB%BFname=value"
    (Different includes generate different junk characters.)



    PHP Code:
    <?php

    echo "name=value";

    ?>
    returns "name=value"

    I tested using multiple php scripts with multiple includes, both on my testing server and my live server and i consistently get the same results.

    Has anyone else had this problem before?
    Can anyone recommend a solution to rid the garbage characters from being echoed back to flash?

  2. #2
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    Out of curiosity what does this print with an include present:

    PHP Code:
    <?PHP
    include "somefile.php";
    echo 
    utf8_decode("name=value");
    ?>

  3. #3
    Member
    Join Date
    Feb 2003
    Location
    Calgary
    Posts
    49
    Thanks for the suggestion,
    Still get the same results.

  4. #4
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    Not 100% sure, I would lean towards it being some setting in your php.ini file but I will have to do some research.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center