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

  • Home
  • SEARCH
  • 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 6197731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:52:26+00:00 2026-05-24T03:52:26+00:00

How can I display a SWF file that is out of the document root

  • 0

How can I display a SWF file that is out of the document root using SWFObject? I can use PHP if needed.
The reason why the SWF files are outside of the doc root is because the SWFs should only be accessible by paying customers and I don’t wan’t people accessing them for free thru the URL.

  • 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-24T03:52:27+00:00Added an answer on May 24, 2026 at 3:52 am

    Couple of options…

    Option 1: Create a symbolic link to the SWF file under the document root

    For example

    ln -s /path/to/file.swf /public/path/to/link.swf

    This will not prevent public access to the link.

    Option 2: Create a PHP file under the document root to marshal the file using readfile() or similar. You may have trouble trying to use flashvars or any other request parameters as these generally rely on an HTTP request. Then again, it might just work. Test it and report back 🙂

    The URL you would pass to SWFObject would be the PHP file.

    For example

    <?php
    // marshal-swf.php
    
    // do what you need to do to approve the request
    
    readfile('/path/to/file.swf');
    

    And in your JavaScript

    swfobject.embedSWF("marshal-swf.php", /* other options */);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Examotion has a player that can display the image for svg files as a
I have swf file, im using code below to display it on my website:
A site I use displays a flash file, which is embedded dynamically using SWFObject.
I'm using SWFObject to embed flash on my site. var so = new SWFObject(file.swf,
Possible Duplicate: Is there a tool that can display a SVN repository visually (
I have a flash .swf file that I embed on my webpage. On my
I have a .swf file, which I have to display as a ticker, but
How can I stop one SWF file playing when playing another in a HTML
I'm using uploadify (a jQuery uploading) script, which has basically a PHP file at
basically, I have an swf file that is set to play 10 seconds after

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.