1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP encoder

Discussion in 'PHP' started by rederick, Aug 17, 2005.

  1. #1
    Hello ... I was wondering if anyone knows of a simple "free" php encoder/compiler that I can use? I have tried Turck MMCache, but after many hours I cannot get it to run on my server (linux RHE3 ) :-(

    Thanks

    Red
     
    rederick, Aug 17, 2005 IP
  2. Willy

    Willy Peon

    Messages:
    281
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Welcome to DP, rederick :)

    Turck has been discontinued (the developer was hired to work at Zend), so try out its successor, eAccelerator.
     
    Willy, Aug 17, 2005 IP
  3. rederick

    rederick Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you willy, I think that I found out why Turck MMCache wouldn't work.

    "Turck MMCache does not work in CGI mode."
    "eAccelerator does not work in CGI mode."

    then in apache version section of phpinfo();
    PHP-CGI/0.1b
    Not really sure but it Looks like I am running in CGI mode.

    :(
     
    rederick, Aug 18, 2005 IP
  4. Willy

    Willy Peon

    Messages:
    281
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Not sure what the PHP-CGI signifies (can't be plain CGI, that's way too inefficient :confused:), but I can confirm that despite what they say on the web page, both Turck and eAccelerator do work fine under FastCGI (Apache+mod_fastcgi or lighttpd). There's more information on eAccelerator's forums/mailing list.
     
    Willy, Aug 18, 2005 IP
  5. rederick

    rederick Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi, Ok I have this PHP software, all I need a quick way to have the php files not readable by a user who has ftp access to the folder where they are stored. I don't think there is a way to do this, because the files must be able to be viewed on the web... meaning that I would 'Have' to give the 'other' permision read access to the files right. I think the only option is encryption of the files.
     
    rederick, Sep 2, 2005 IP
  6. Willy

    Willy Peon

    Messages:
    281
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Not necessarily. It depends on the Unix user accounts the web server and FTP server are using. You could chmod a file as 660 (user: read/write, group: read/write, anyone else: nothing), and chown (assign) both user and group ownership of the file to the user account 'www-data' (if that's your Apache user). That would make it impossible for the FTP server to read the file if it is running under another user account, which it usually is (often the user account 'nobody').
     
    Willy, Sep 2, 2005 IP
  7. digibluez

    digibluez Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    TRY this one http://pobs.mywalhalla.net. its free.
     
    digibluez, Sep 5, 2005 IP
  8. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #8
    RectangleMan, Sep 5, 2005 IP
  9. rederick

    rederick Peon

    Messages:
    128
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Thanks for all the help! This is what I ended up doing... I got eAccelerator to work on a different server, then using the eloader php module thingy, I am able to run the encoded php on the main server. This however does not stop someone from simply running the eloader on their own server with my encoded software, but it'll be a nice deterant, and a little piece of mind. :)
     
    rederick, Sep 5, 2005 IP
  10. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #10
    I suggest if you want to protect your code get the ioncube..it's nice and pretty easy to use. Also fairly priced.
     
    RectangleMan, Sep 7, 2005 IP
  11. rickbkis

    rickbkis Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Dumb question, maybe, but if the web accessible source is just a shell that includes the real code from a protected area (600 for only httpd user), doesn't that keep the source out of prying eyes?

    They'd have to compromise the root or httpd user accounts to get to it. All that shows up in a webpage is the output, right?

    Set me straight if my assumptions are incorrect...

    rickb
     
    rickbkis, Sep 11, 2005 IP
  12. atmoriyo

    atmoriyo Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    check Monas - Free PHP encoder decoder at ombudi.com
     
    atmoriyo, Aug 5, 2009 IP