Suppose I have scripts already written auth.php index.php reports.php robots.txt config.php

How to pack them in 1 file? And when the user uploads it to the hosting, we go in there entering the password, when we enter the password and click ok, the files are unpacked right on the hosting! How to stir up?

  • one
    you can use php ziparchive in particular, here is an example of adding files php.net/manual/ru/ziparchive.addfile.php - Alexey Shimansky
  • Is this the only packaging option? - GooliveR
  • there is still an executable phar archive - Naumov
  • @Naumov is only on the host (unless it belongs to the very people who upload the file) it is unlikely that it will be able to execute it. There files are filled with archives .... Just as a supplement to the commentary - Alexey Shimansky
  • Found from 1 writer such a file: rgho.st/8MCqg6Kr7 he uploads this file to the hosting, and from there the files are unpacked when the password is entered - GooliveR

0