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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:27:56+00:00 2026-06-02T08:27:56+00:00

I have an archive (zipped) file. A user archives it so there is no

  • 0

I have an archive (zipped) file. A user archives it so there is no standard that is being followed. This file has several folders and files in it. But I am only interested in one file ‘FOI.zip‘. FOI.zip is an archive within a zip file.

Eg: Main file is what I have and needs to be searched..
Possible Structures within Main.zip

1.
/Main.zip
 /A
  /FOI.zip
 /B
 /C

2.
/Main.zip
 /A
  /a.zip
   /FOI.zip
 /B
 /C
3.
/Main.zip
 /XYZ
  /A
   /FOI.zip
  /B
  /C

In PHP I would like to search for FOI.zip recursively and get the path for FOI.zip.
I greatly appreciate any help.

Thank you in advance.

  • 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-02T08:27:58+00:00Added an answer on June 2, 2026 at 8:27 am

    If i understood it well, you need to find a FOI.zip in the archive, is it right?

    If yes, you have this sollution:

    <?php 
    system('unzip' . $zip file);
    system('find . | grep FOI.zip', $relative_path);
    
    // $relative_path is a where FOI.zip is, if it's empty - means no FOI.zip found.
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an archive file that looks like this: !<arch> file1.txt/ 1350248044 45503 13036
I have a ZIP archive that's embedded inside a larger file. I know the
I have a zipped file having size of several GBs, I want to get
I have an archive page that shows custom posts, each of which has a
I have an archive page template that I've built that has a successful navigation
I have a Zip archive with a large (important) file that will not extract.
I have 3 tables (archive has many sections, section (may) belong to many archives):
I have a file that I want to read that is itself zipped within
I have an archive system that had to be on two sql databases for
I have a web archive with a file placed in the WEB-INF directory. How

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.