Results 1 to 7 of 7

Thread: Php Compiler

  1. #1

    Question

    Hi,
    Do you know if there is a php compiler ?
    I need to compile a php script to execute it via shell.

    Thank you
    NHosting



  2. #2

    Cool

    You can execute a text-only browser from the shell, I use Lynx to execute PHP scripts from the shell and with cron jobs.
    Try this way:

    TERM=xterm; export TERM; /usr/bin/lynx -source - "http://www.yourdomain.com/script.php"

    Bye
    Ricky

  3. #3

    Talking

    Thank you!

    NHosting

  4. #4
    There is indeed a compiler available for PHP... It's called Zend Encoder.

    http://zend.com/store/products/zend-encoder.php

    Not cheap, however useful if you plan on selling PHP programs and don't want to worry about your code getting ripped off.

    Best Regards,
    Matt Lightner
    mlightner@site5.com
    Matt Lightner - http://www.mattlightner.com/
    - First initial to the last name at the mail service provided by the world's largest search engine
    - Founder and CEO (Former) Site5.com, sold in 2008
    - Really honestly wants to be a good WHT citizen but can never remember all the correct etiquette. Mods, sorry in advance

  5. #5

    Unhappy

    I see, thank you.
    Is it the only one encoder ? Isn't there anything else ? 2500$ is too high in my opinion.

    NHosting

  6. #6
    The only one that I'm aware of... yes. I really think someone should (and will) make a GPL version of it.

    Best Regards,
    Matt Lightner
    mlightner@site5.com
    Matt Lightner - http://www.mattlightner.com/
    - First initial to the last name at the mail service provided by the world's largest search engine
    - Founder and CEO (Former) Site5.com, sold in 2008
    - Really honestly wants to be a good WHT citizen but can never remember all the correct etiquette. Mods, sorry in advance

  7. #7
    Join Date
    Oct 2000
    Posts
    337
    One thing nobody has mentioned is that PHP can be compiled as a CGI. Once you do this, you can use the CGI binary to run scripts from the shell just like you would for Perl. In fact, you can even set the script executable and put a:

    #! /path/to/php

    ..at the top and run it directly, like any Perl script.


Posting Permissions

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