SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast irbrian's Avatar
    Join Date
    Jul 2004
    Location
    Cache Valley, USA
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Self-Extracting Archive from PHP?

    Is it possible to generate a self-extracting, executable archive file from within PHP, i.e. through the Zip File functions?

  2. #2
    SitePoint Addict Trent Reimer's Avatar
    Join Date
    Sep 2005
    Location
    Canada
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use it to create a zip archive but not an executable.

    This is probably just as well. People should learn to avoid downloading executables. Also, if you compile an executable for Windows 32, what if they are using Mac or Linux - they wouldn't have access to the content? What if your server cannot compile Windows executables, etc.?

    Of course, if you need executables for a specific platform you can set up a server on that platform and use PHP to execute any program you please (e.g. Winzip) to create an executable self-extracting archive.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •