Results 1 to 10 of 10

Thread: Compile php script, how?

  1. #1
    castord's Avatar
    castord is offline Student Penguin
    Join Date
    Jun 2008
    Location
    As. - Paraguay - GMT -4
    Posts
    95

    Default Compile php script, how?

    Is the there any way to compile a php script ?
    I wrote some code and I want to make it a executable binary but by now I can't find the way

  2. #2
    ken_yap is offline Flux Capacitor Penguin
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,955
    Blog Entries
    4

    Default Re: Compile php script, how?

    A search on "php compiler" turned up something called Roadsend. It's GPL even. I learnt something today. Let us know how you go.

  3. #3
    ab@novell.com Guest

    Default Re: Compile php script, how?

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    PHP can't normally be compiled afaik. Is there a reason you want to do
    this? Zend (the company that creates the PHP engine) I think may have
    some ways to optimize code so it is faster but I'm not familiar with
    them (haven't looked into it for a few years) but check out www.zend.com
    for whatever they may have.

    Good luck.





    castord wrote:
    > Is the there any way to compile a php script ?
    > I wrote some code and I want to make it a executable binary but by now
    > I can't find the way
    >
    >

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFIx0IW3s42bA80+9kRAuaJAJ9BkBK3HqDeT+919lC0XWlLthGtdwCePNwU
    +xn4h9nkwHSgngH5A+JqtRQ=
    =15uE
    -----END PGP SIGNATURE-----

  4. #4
    castord's Avatar
    castord is offline Student Penguin
    Join Date
    Jun 2008
    Location
    As. - Paraguay - GMT -4
    Posts
    95

    Default Re: Compile php script, how?

    Thank you!
    I'll take a look right now.

  5. #5
    emab is offline Student Penguin
    Join Date
    Jul 2008
    Posts
    85

    Default Re: Compile php script, how?

    also you can use LAMP server to have php, apache and mysql!

    it's in suse dvd and you can install it from install or remove software packages!

  6. #6
    Viras is offline Explorer Penguin
    Join Date
    Jan 2008
    Posts
    120

    Default Re: Compile php script, how?

    AFAIK you can't convert PHP-Code to binary code. ZEND IMO only provides encryption / optimization tools but no true PHP to Binary compiler!
    Don't ask me what my opinion is, you won't like it anyway.

  7. #7
    castord's Avatar
    castord is offline Student Penguin
    Join Date
    Jun 2008
    Location
    As. - Paraguay - GMT -4
    Posts
    95

    Default Re: Compile php script, how?

    Apparently you're right.

    I did try with roadsend compiler but doesn't work for complex scripting using remote database access (db2 with ibm_db2 module).

    I'm pretty disappointed, I'll find another way out.

  8. #8
    chef_d's Avatar
    chef_d is offline Student Penguin
    Join Date
    Jun 2008
    Location
    Canada
    Posts
    52

    Default Re: Compile php script, how?

    uhm no php scripts is/are not compiled, its an interpreted language.

  9. #9
    castord's Avatar
    castord is offline Student Penguin
    Join Date
    Jun 2008
    Location
    As. - Paraguay - GMT -4
    Posts
    95

    Default Re: Compile php script, how?

    We are not discussing about the nature of php as a language.
    We're trying to make binaries from php scripts, something like perlcc for perl.

  10. #10
    lambda_geek is offline Newcomer
    Join Date
    Sep 2008
    Posts
    4

    Default Re: Compile php script, how?

    You can use PHP with Command Line Interface.
    PHP: Using PHP from the command line - Manual

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.5.2