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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:34:42+00:00 2026-05-16T10:34:42+00:00

PHP 5.3 has a new feature called PHAR similar to JAR in JAVA. It’s

  • 0

PHP 5.3 has a new feature called PHAR similar to JAR in JAVA. It’s basically a archive of PHP files. What are its advantages? I can’t understand how they can be helpful in the web scenario.

Any other use other than “ease of deployment” – deploy an entire application by just copying one file

  • 1 1 Answer
  • 2 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-16T10:34:43+00:00Added an answer on May 16, 2026 at 10:34 am

    There are tremendous benefits for open source projects (in no particular order).

    1. Easier deployment means easier adoption. Imagine: You install a CMS, forum, or blog system on your website by dragging it into your FTP client. That’s it.

    2. Easier deployment means easier security. Updating to the latest version of a software package will be much less complicated if you have only one file to worry about.

    3. Faster deployment. If your webhost doesn’t give you shell access, you don’t need to unzip before uploading, which cuts out per-file transfer overhead.

    4. Innate compartmentalization. Files that are part of the package are clearly distinguished from additions or customizations. You know you can easily replace the archive but you need to backup your config and custom templates (and they aren’t all mixed together).

    5. Easier libraries. You don’t need to figure out how to use the PEAR installer, or find out whether this or that library has a nested directory structure, or whether you have to include X, Y, or Z (in that order?). Just upload, include archive, start coding.

    6. Easier to maintain. Not sure whether updating a library will break your application? Just replace it. Broken? Revert one file. You don’t even need to touch your application.

    7. What you see is what you get. Chances are, someone is not going to go to the trouble of fudging with an archive, so if you see one installed on a system you maintain, you can be fairly confident that it doesn’t have someone’s subtly buggy random hacks thrown in. And a hash can quickly tell you what version it is or whether it’s been changed.

    Don’t poo-poo making it easier to deploy things. It won’t make any difference for homegrown SaaS, but for anyone shipping or installing PHP software packages it’s a game-changer.

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

Sidebar

Related Questions

Well I'm new to PHP but thinking about these stuff has really confused me
My PHP site has header,body,footer files that are included into the INDEX.PHP page. On
PHP has PHP-FPM, a pool of PHP processes that run, are managed, go away
PHP has some pretty inconsistent parameters for functions (e.g. sometimes first haystack , then
Php has a method escapeshellcmd() that escapes any characters in a string that might
PHP has a is_readable function which checks to see if the file is readable
Since PHP has no custom-class type-casting, how would I go about doing the PHP
My defs.php has a define that I need, and although I used require_once for
My routes.php has the following line of code: Router::connect('/', array('controller' => 'users', 'action' =>
I'm learning PHP. The PHP has inline commands in HTML code to produce dynamic

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.