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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:34:45+00:00 2026-06-10T22:34:45+00:00

I have a AS3 flash app that needs to create a folder/path (online) for

  • 0

I have a AS3 flash app that needs to create a folder/path (online) for each user, and get some xml files inside these folders.

I can get the php to write these xml files, but only if the path/folder already exists. If it doesen’t, then it returns an error:

[<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in /home/edicoes/public_html/test//savexml.php on line 20

Here is the php code:

<?php
$XMLFile = $_POST["xmlfile"];
$filename = $_POST["filename"];

//mkdir($User, '0777'); //I tried mkdir, to no avail. It's only for offline?

$handle = fopen($filename, 'w+');
fwrite($handle, $XMLFile );
fclose($handle);

echo "result=success";
?>
  • 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-10T22:34:47+00:00Added an answer on June 10, 2026 at 10:34 pm

    You just have to create the directory first. Make sure apache have the rights to create dir in parent dir (chmod 777).

    What if someone call your code with :
    xmlfile = malicious php code
    filename = something.php
    and then call the php page with a browser ?

    You should care about security, at least add the “.xml” extension in php code.

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

Sidebar

Related Questions

We have a Flash app (AS3). This is a desktop application that runs in
I'm writing a web based flash app that's written entirely in AS3. I have
I have created AS3 APP that works with http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/Socket.html The application works fine on
We have a project that has been built in Flash and as3. It is
I have a Flash program that loads AS2 and AS3 SWF files dynamically with
I have a very simple AS3 app that draws few circles using drawing api
I'm building a social media app in Flash (AS3) that is tightly integrated with
I'm building a Flash app (as3) that allows users to embed photos of themselves
In AS3 flash - I have a textField with a CSS in it that
I have a Flash (AS3, CS3) piece that has a button that will make

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.