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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:48:34+00:00 2026-05-30T04:48:34+00:00

(Using XAMPP 1.7.7 with PHP 5.3.8) I know how to extract *.7z files with

  • 0

(Using XAMPP 1.7.7 with PHP 5.3.8)

I know how to extract *.7z files with PHP/p7zip, but I need to test locally using xampp (I’m using Windows 7 64 bits) and I’m stuck. I tried using exec():

<?php exec('7z e test.7z'); ?>

but it didn’t work!

I also tried this:

<?php exec('"C:\Program Files\7-Zip\7z.exe" e test.7z'); ?>

Which naturally doesn’t work either.

Out of frustration, I even copied 7z.exe to the PHP script directory but I’m still can’t get it to work (in this case 7z.exe complain that it “cannot find archive”, even though everything is located under the same folder and the archive does actually exist!)

So, how can can I extract 7z archives using PHP & XAMPP?

Thanks 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-05-30T04:48:35+00:00Added an answer on May 30, 2026 at 4:48 am

    did you try to provide full path to test.7z while executing the above command

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

Sidebar

Related Questions

in windows (using apache as server), my file path directory will be C:\xampp\htdocs\mysvn\PhpDocumentor\phpdoc.php. But
Is it possible to create hidden files/folders on windows using php (xampp)? And if
I was using xampp to develop locally and then I installed the PHP from
I am developing a PHP application using our XAMPP setup as a test server.
I am using xampp on Windows, but I would like to use something closer
I know how to set up a local webserver using xampp on windows... I
I'm using Netbeans 7.0.1 in a PHP project. I've installed XAMPP 1.7 in Windows
Do you know any server like Selenium RC? I'm using xampp on Windows, I
I am using PHP/JavaScript/MySQL on XAMPP to develop the prototype. I need to use
I'm using XAMPP (latest version) on OS 10.6.2, that's bundled with PHP 5.3.0 I

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.