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 8028551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:10:10+00:00 2026-06-05T00:10:10+00:00

Lets say that in my flash project I have script that create for me

  • 0

Lets say that in my flash project I have script that create for me xml files dynamically (by PHP). XML file name is based on specific variable and escaped using escape(variable) in case that variable may (and mostly do) contains unsupported filename chars…

I need to know precise name of xml file later in my flash project, because I’m loading these XML files only if unescape(XMLfile) == variable . There’s a lot of variables, so I can’t just use String.replace() function to wipe out unsuported fileneme chars…

There’s part of PHP file I’m using:

$XMLDom = new DomDocument('1.0', 'UTF-8');
$xmlId = trim($_POST['xmlId']);
if(file_exists($xmlId)){
    $XMLDom ->load($xmlId);
}else{
    $newXMLHandler = fopen($xmlId, 'w') or die("can't open file");
    fclose($newXMLHandler);

    $XMLDom ->load($xmlId);

    .... rest of the code ....

    $XMLDom ->save($xmlId);
}

The result of the code above is that in directory are 2 newly created XML files

One XML empty created by fopen($xmlId, 'w'), named: “fi%20le%2C%2E%40.xml”
and second one named: “fi le,.@.xml” where all my new XML data is stored…

Is there any way to load escaped named XML file by PHP?

Thanks in advance.

Arthur.

  • 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-06-05T00:10:11+00:00Added an answer on June 5, 2026 at 12:10 am

    I don’t feel quite confident I understand your problem, but if your question was to find the analogue function to escape() in PHP, then urlencode() looks like the best match, but you need to research what exactly is being escaped. Note, for example, that there are several different ways to percent-encode strings, especially the multibyte strings. Flash may use escapeMultibyte() or it can also use encodeURIComponent() both encode different subsets of characters, and differently – so beware!

    Now, regarding file names, if your HTTP server is running on Unix system, than “fi le,.@.xml” is a valid file name, nothing to worry about – inconvenient some times, but it is a legitimate name.

    touch 'fi le,.@.xml'
    

    would create a file, no problems there. Basically, the restricted characters are the slashes and the null character (“\x00”), but it is common to restrict also the characters that may be interpreted as shell commands – this is really up to you.

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

Sidebar

Related Questions

Let's say that I have a Flash website where you could create an avatar
Lets say that you have a business object whose current state implies that there
Lets say that I have an executable and when it is started I want
Lets say that I'm trying to create a new process with the following code:
Lets say that I have only DHT (distributed hash table) implemented (in Python), and
Lets say that I have the following code: public class Shelter<A extends Animal, B
Lets say that i have the following array : float QuadVertices[4 * 2]; float
Lets say that I have one component which is doing something with Workbook object
For example, Lets say I have a flash swf game, and when users press
Lets say we have a native library that works with data like this: double

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.