I am working on a PHP script that I plan to sell without giving the user the ability to distribute it to anyone else.

I have heard about GPL being viral and I have quite a few libraries that are being used in my script that are under the GPL. (for example : jquery, phpthumb etc)

Does this mean that if a user who has bought my code can freely distribute it because a part of my code is under GPL so it becomes viral and my whole project becomes GPL ?

Can i not use any GPL code in my project ?

Thanks for any help.

  • 1
    jQuery is dual-licensed, both under the GPL and the MIT license, which is very permissive Nov 4, 2011 at 10:11

1 Answer 1


If you use GPL code in your project, you have to release it under the GPL license. For more informations, see http://www.gnu.org/copyleft/gpl.html. However, JQuery is also licensed under the MIT license, which is more permissive, and you can purchase a commercial license for phpThumb.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.