Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6662735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:25:20+00:00 2026-05-26T02:25:20+00:00

I’ve got a strange problem with a php file. I’m trying to get some

  • 0

I’ve got a strange problem with a php file. I’m trying to get some data from a mysql database and then return it back to the AS3, and that’s been going fine, until I did any change whatsoever to one of the php files. The 2 php files are standard php code, to get data from the database so the main file has at the top..

session_start();

require_once 'gSQL.php';

require_once 'fb.php';

And gSQL has various functions relating to my game, like I said all that was working fine, until I literally did anything to the gSQL.php file, even just opening it in DW, saving it with a different name, and then resaving it back to it’s original name *without changing the content at all), uploading it to the server stops my AS3 code from working, where as before the re-save, the exact same code allowed my as3 code to work fine!

The as3 line that is acting strange is “if (this.returnvars.scores)”, here’s the top part of the AS3 function where the line is situated.

function completeGame(event:Event):void
{
this.returnvars = new URLVariables(this._game.data);

if (this.returnvars.scores)
{

With the original gSQL.php file, the line “if(this.returnvars.scores)” works and the program goes into that code block, but with the different (but the same) file “if(this.returnsvars.scores) is false and it jumps over it, i’ve looked at the contents of “returnvars.scores” and from what I can see it’s exactly the same for both files, but something must be different.

The only thing I can think of is the encoding of the file, which DW tells me is UTF-8, and that’s what it’s being saved back to the server as…if I upload to the server the original gSQL.php file, the one I didn’t do anything to (not even resaved the name) the AS3 works fine..any ideas??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:25:20+00:00Added an answer on May 26, 2026 at 2:25 am

    Check that the flash file you are embedding has the

    allowScriptAccess="sameDomain" 
    

    paramater in the embed flash object code, it seems to help with a lot of odd issues.

    Failing that, make sure after you upload your PHP file that it has at least 644 permissions.

    -Ev

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am currently running into a problem where an element is coming back from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a reasonable size flat file database of text documents mostly saved in
I'm trying to create an if statement in PHP that prevents a single post
I have some data like this: 1 2 3 4 5 9 2 6
I want to count how many characters a certain string has in PHP, but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.