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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:01:21+00:00 2026-05-15T18:01:21+00:00

I have a command line php app that I need to distribute to a

  • 0

I have a command line php app that I need to distribute to a client. I just want to give them an executable, not instructions for installing php 😉

What is a good php compiler for windows that includes support for php 5, curl, TLS, and a few other libs I use?

I need to control memory and time limit usage, so I must be able to use a custom php.ini. (this should be packaged in the exe as well, not a separate file)

Additionally, I don’t want the code to be easily extracted. This isn’t a huge requirement, but I’d rather not have the source viewable in a hex editor.

I’ve got a few hits on Google, but if anyone has actually used one, your feedback would be invaluable.

edit

If I knew I was going to distribute this to the client when i started, I’d have used C#. But I didn’t. Now they want to buy it. It needs to be DEAD SIMPLE. one executable containing the php interpreter and my script plus an entry point to start my script when the exe is run.

It would also be great if I didn’t have to redistribute dll’s either.

edit2

I am look for somthing along the lines of phc, or roadsend. phc doesn’t support windows, and roadsend doesn’t support php5 in windows.

  • 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-15T18:01:21+00:00Added an answer on May 15, 2026 at 6:01 pm

    Okay I figured it out. there is a open source program called phc-win. It supports php 5.3.1, compiles scripts to byte code (obfuscation!) and is simple to use (It even has a gui).

    It needs a php-embed.ini and whatever DLL’s you use, but it just works.

    Thanks for all the answers everyone!

    phc-win 0.3.1 (c) 2009 Andrew
    Fitzgerald –
    contact@swiftlytilting.com PHP
    Version: 5.3.1

    • To compile a single file:

      • Choose ‘Compile single file’ from the File menu.
      • Then select the file to compile.
    • To build an EXE containing all files in a directory and all sub
      directories:

      • Choose ‘Compile directory’ from the File menu.
      • Select the project folder.
      • Select the main program file.
      • phc-win will then recursively scan the specificed directory.
      • All files with ‘php’ anywhere in the extension will be compiled into
        .phb files.
      • These .phb files, along with all files in the directory tree will be
        added to the project EXE.

      • Once the EXE has been created, you will be asked about the EXE type:

        • CONSOLE (displays DOS box)
        • WINDOWS (no DOS box).
    • Place the EXE in the same directory with the required DLL file(s) and
      php-embed.ini file if needed.

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

Sidebar

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.