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.
  2. Better Analytics for WordPress Get It Free

Protect php source code

Discussion in 'PHP' started by sample4u, Nov 2, 2013.

  1. #1
    Hi
    Use my solution and your php code is more safe

    encode your files by Ioncube,SourceGuardian,phpSHIELD,Zend,TrueBug ,nu-coder or ...

    <?php
    namespace MyProtect;
    class myProtect {}
    
    
    // Your code here (encode your files with php 5.3 and 5.3+
    
    
    namespace MyProtect;
    class myProtect {}
    ?>
    PHP:
     
    sample4u, Nov 2, 2013 IP
  2. Zoti Media Group

    Zoti Media Group Well-Known Member

    Messages:
    1,106
    Likes Received:
    44
    Best Answers:
    1
    Trophy Points:
    185
    Digital Goods:
    2
    #2
    Nothing is safe those days anymore :)
     
    Zoti Media Group, Nov 2, 2013 IP
  3. sample4u

    sample4u Banned

    Messages:
    683
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #3
    more safe is better of no safe :D
     
    sample4u, Nov 2, 2013 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,149
    Likes Received:
    340
    Best Answers:
    18
    Trophy Points:
    325
    #4
    Um, ... what?
     
    nico_swd, Nov 2, 2013 IP
    ThePHPMaster likes this.
  5. NetStar

    NetStar Well-Known Member

    Messages:
    1,577
    Likes Received:
    253
    Best Answers:
    19
    Trophy Points:
    135
    #5
    You have billion dollar companies who worry less about code theft than your PHP newbie trying to protect their 9 line page counter.

    News flash.. we are developers. Most of the time we can recreate whatever you make without seeing your source. You are worried about something miniscule.
     
    NetStar, Nov 2, 2013 IP
    nico_swd and sarahk like this.
  6. pictureboarduk

    pictureboarduk Active Member

    Messages:
    545
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Well PHP does run on the server, so unless you are selling your scripts then this isn't really needed.
     
    pictureboarduk, Nov 4, 2013 IP
  7. Pudge1

    Pudge1 Active Member

    Messages:
    912
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    90
    Digital Goods:
    1
    #7
    I don't understand, PHP is ran server side not client side. People shouldn't be able to see your PHP source code in the first place unless you have a vulnerability in your script. And assuming they can get to your source code from a vulnerability they can most likely re-create the site themself
     
    Pudge1, Nov 5, 2013 IP
  8. nico_swd

    nico_swd Prominent Member

    Messages:
    4,149
    Likes Received:
    340
    Best Answers:
    18
    Trophy Points:
    325
    #8
    Since he's suggesting Ioncube, SourceGuardian, etc... I'm pretty sure he's aware that PHP runs on the server. So he's most definitely referring encryption for code distribution (a very, very nasty thing to do, by the way).

    What troubles me the most is his other solution, though. Placing the code between namespaces and suggesting to encode it with PHP 5.3 or above. Seriously, what the Effin' eff? This makes no sense whatsoever.

    Unless the OP provides more details, this thread should be closed and vanished from this planet.

    Also, this pretty much:

     
    nico_swd, Nov 6, 2013 IP
  9. sample4u

    sample4u Banned

    Messages:
    683
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    58
    #9
    So why you purchase lock? open your door home :D
    More big companies protect codes, whmcs and .................. because some developers steal codes and use for themselves.
    my Solution only stop stealers
     
    sample4u, Nov 6, 2013 IP
  10. nico_swd

    nico_swd Prominent Member

    Messages:
    4,149
    Likes Received:
    340
    Best Answers:
    18
    Trophy Points:
    325
    #10
    But I fail to see how.

    What's the purpose of the namespaces, and how do you encode your code with PHP?

    Most of us are aware of Ioncube and the others, so that aside. What's with your other solution?
     
    nico_swd, Nov 6, 2013 IP