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

The Archive Base Latest Questions

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

Scenario The company I work for has recently exploded (I started only a couple

  • 0

Scenario

The company I work for has recently exploded (I started only a couple years after it started up) and we now have a second developer and about 5 more designers.

Previously, I worked on everything myself that was dev, including a showcase web-page that would hold banner ads to send to client – example here.

I developed my own templating system for this which just replaced tokens in a template such as {300x250} with a banner picked up from a directory specified in the row which represents this job that had a matching size.

The process for setting up one of these was:

  1. Connect to FTP and upload the files (swfs) into a given directory.
  2. Log into phpMyAdmin and create a record in a table which would hold information about the path to the files, client name and which template to use.
  3. Create a new template if required – ie if there’s an unusual assortment of banners.

As you can see, the above is almost impossible for someone without my skill-set to accomplish (ie, the designers).

My idea

What I want to do is create a template that will be hosted at our staging domain, and a companion index page that will search for a value via $_GET which will represent a path to a HTML file. For example:

http://example.com/?view=bing_lee_october.html

What I then want to do is create an interface that will do the following:

  1. Display a file-upload field that accepts a HTML file.
  2. When the HTML file has been selected, the document should be scanned to generate a list of all the SWF files that have been embedded on the page – this would most likely be done via Insert -> Media -> SWF using the Dreamweaver interface (by the designers).
  3. Based on this list, the system should then automatically grab each of the SWF files and upload them along with the HTML file. I’m happy with everything being in the same directory for the sake of simplicity.
  4. Rename the SWF to whatever they were + unique id to avoid overriding.
  5. Replace the links to the SWF files in the HTML to match the renamed files.
  6. Generate a link to the newly created presentation desk – this will probably be made unique via PHP’s uniqid() just to stop confusion, etc.

The result should be a link like this:

http://example.com/?view=4h78hg5d

Linking to SWFs like this:

  • BLD020_November_300x250-4h78hg5d.swf
  • BLD020_November_728x90-4h78hg5d.swf
  • BLD020_November_160x600-4h78hg5d.swf

With my previously created template wrapping the HTML they uploaded.

My question

Is it possible to automatically add the companion SWF files to the upload queue, or is this only allowed manually?

If the latter, what’s another approach I can take to achieve the above?

  • 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-26T09:20:33+00:00Added an answer on May 26, 2026 at 9:20 am

    Could your app accept a zip archive as an upload and then extract all of the files it needs that way?

    Here’s an example from http://php.net/zip.examples#example-819 that opens a zip archive, outputs metadata about the archive and lists all of the files:

    <?php
    $za = new ZipArchive();
    
    $za->open('test_with_comment.zip');
    print_r($za);
    var_dump($za);
    echo "numFiles: " . $za->numFiles . "\n";
    echo "status: " . $za->status  . "\n";
    echo "statusSys: " . $za->statusSys . "\n";
    echo "filename: " . $za->filename . "\n";
    echo "comment: " . $za->comment . "\n";
    
    for ($i=0; $i<$za->numFiles;$i++) {
        echo "index: $i\n";
        print_r($za->statIndex($i));
    }
    echo "numFile:" . $za->numFiles . "\n";
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our scenario: We have a main database that stores company-wide information. We have several
Due to company constraints out of my control, I have the following scenario: A
In our company we have started using VS 2010 to model our systems, in
The scenario is this: My company has 2000 customers, and we need to send
the company that I work for has a website to enter some user's code
Scenario I am developing an internal CakePHP company application that has a despatch screen,
Scenario: A stored procedure receives from code a DateTime with, let's say DateTime.Now value,
Scenario: You have an ASP.Net webpage that should display the next image in a
Scenario I have two wrappers around Microsoft Office, one for 2003 and one for
Scenario: Let's say I have four very similar applications (i.e. most of the functionality

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.