Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I create software using PHP. I'm going to sell this software so I need to protect my source code so that nobody can view it. How can I protect my PHP code so that the software still functions the same?
I also need to bind the software to a particular, authorized PC. It should not run on any other PC. How can I do that? Should I encrypt using LAN MAC address? Does anyone have any other ideas?
I put together the following list a ways back - don't know if they are all current, or how many are now free, but you should find something useful here:
About:
Wikipedia article: PHP Accelerator
Comparison of APC, Zend, xCache, & the Zend Framework
Software:
Safeyar (Best)
PHP's APC (PECL page)
RoadSend
Turck-mmcache
eAccelerator
PHP-Accelerator
SourceGuardian
NuSphere Nu-coder
Gridinsoft
IonCube SA-Encoder.php
Another thread on SO that adds a few more (check it out):
Can I encrypt PHP source or compile it so others can't see it? and how?
Zend Guard
BCompiler (PECL page)
PHC
What you may be looking for is not cryptography per se, but rather obfuscation. If you Google for "php obfuscate", many choices show up. The first one is from Raizlabs.
SourceGuardian will do what you want.
Just Download http://www.phplockit.com/demo.php its gives what you want.
Why do not you use ionCube or Zend Guard?
Usually there is a key to every locked door...
So before using / purchasing some of the encryptors on the market, take your time and search google to check if it is not already an "easy breakable" way of encoding.
For example: http://www.kgbiz05.com/decoders
See our SD PHP Obfuscator for a reliable PHP obfuscation tool.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I need to write my app to 3 languages. I need to have a web version, iOS, and Android version for my app. I wrote an Android version already. I'm looking for a way that I can run apk file on a simulator written in PHP or any way that I can write my code to one language and can run it on Android, iOS and the web.
I'm not sure if it's what you're looking for, but I used IonicFramework a while ago, and it's excellent. It allows to export to Android and iOS, but I'm unsure about the web.
I'd recommend taking a look at it.
I also don't recommend using the same code for both Web and Mobile applications.
Simply. You can't run an APK with php. However, if you developed that app, it comes with a debugger/emulator.
What are you trying to do here? Don't make life harder than it already is.
And you won't be able to compile things in another language. That's c#, and objective c in which you'll need to learn. Have fun
You are asking about cross-platform app building approach for all three platforms (i.e Android, IOS and Windows) there are several SDK or IDEs like Phone Gap, Xamarin, which allow you to write your code logic once and it will be built for all the three platforms mentioned above.
To me, your procedure is not very clear. There are very nice projects like Unity which allows you for multiplatform development, i.e. build once, deploy everywhere [from their website].
It really depends on the specification of your project whether you can effectively use such frameworks/tools.
https://unity3d.com/unity/multiplatform
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm fairly new to web development and I have only published one website before. With that website I only used some PHP and without framework. Now, I'm planning on using the laravel framework for my next, bigger, website. I'm wondering if there are differences between publishing a website when using a PHP framework? If so, what are the major differences and where can I read about it (googling has not helped me)?
You have countless options. Here are some I am aware of:
1. FTP'ing
Basically, you could just publish your site/app by FTP'ing it up to your server. The biggest issue will be the Database-changes. Here, the main influence is, whether are you able to run migrations or not? You would at least have to have ssh-access to your server with the required prerequisites installed. Otherwise, you would need to keep track of the changes in some other way, and change the db manually (which is not an good option IMO).
2. Automated deployments
There are server-deployment automation-tools, the one i know is capistrano. You can write scripts which do the deployment. These tools are also capable of running migrations, if you tell them to do so, but you would need to have ssh-access for that. Google will tell you the rest, here is a good tutorial.
2.1. Push-to-deploy
If you use SCM for your "bigger project" (which i would highly recommend), you could use push-to deploy technologies. This approarch basically uses Git-Hooks for triggering deployment-scripts. Deeployer could take care of that for you, if you do not want to develop your push-to-deploy-solution from scratch. Other alternatives are Rocketeer (Open Source) or DeployHQ (Paid)
2.2. Using laravel-taylored hosting/deployment/server-management services
Services like laravel-forge or envoyer offer zero-downtime automated deployments. I guess they are also based on push to deploy anyway. If you want to learn more about them, i recommend watching the corresponding laracasts-series (Forge, Envoyer). Be aware that they are not free.
I hope this overview gets you started. Happy deploying!
There is no difference between publishing a plain PHP website and one with a framework. Simple FTP up all your files and it will work, just remember to upload the framework files also.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
What kind of server configurations would I need to do in order to run a Python + Pygame code on a website.
Is php able to call and execute the python on server side? Do I need to install python on the server? I believe python is installed, but do I need to install the pygame library? What if I compile my code, will I need to install pygame on the server after that?
Can some one provide me a general list of things I will need to complete in order to make this happen?
My case:
I would like to put a game I made with Python on a website. I see how the python can run on the server no problem, but how can I ensure the client be able to play the game on their browser?
Web Browser can display/run HTML+JavaScript+SVG+(HTML)Canvas or (Adobe) Flash. You can't use PyGame to create game running on page. PyGame doesn't generate HTML+JavaScript or Flash
There might be a Python plugin somewhere, but I don't know of it and I can't imagine it's very popular. Your best bet would be to use Pyjs, previously called Pyjamas, which can translate Python to JavaScript. It doesn't support Pygame, but you might be able to write a Pygame-compatible module using the browser's canvas support. It's not a solution that you can just drop in and go, but I don't think there is one.
Yes, there is a mod like mod_php... The extension of files are
.psp
Python server pages
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Can anybody tell me is a PHP desktop application possible? Like software we install on our computer system?
It is definitely possible to make desktop applications in PHP.
If you're looking for a starting place, I would check out (to cover the very basics):
Building Desktop Applications with PHP
Have a look at:
php-gtk
winbinder
PHP also comes with ncurses support if you are happy to deal with a character based front end.
However for standalone apps, you could do a lot worse that looking at HTML5's offline capability.
its possible to make desktop applications using php. You can run your php independent of you apache server.
Yes, you can use bcompiler to enable the production of php-gtk applications that could be used on client desktops, without the need for a php.exe. However, just because it is possible, does not mean it is practical. There is better platforms for developing desktop applications available.
Is worth noting you can also use Phalanger (PHP in .net) and the .Net framework to do some of the same stuff. Interesting, but useless, really.
PHP-GTK, WinBinder, etc... are very outdated and may not work in all three platforms. But the new opensource alternative is PHP Nightrain and it works great in all three platforms. Since the source is available you can always compile to any architecture you may need.
Here are some resources to help you develop cross platform GUI applications with PHP Nightrain:
http://www.naetech.com/php-nightrain
http://www.naetech.com/developing-ribbon-desktop-application-php.html
http://www.youtube.com/watch?v=GXt8erPLf4o
Hope it helps!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to study OOP-related PHP, mainly for mashups and some development. I started with PHP and MySQL.
What's the main relation or difference between PHP and PHP5. Is there anything different like PHP is for web development and the other PHP is for software development?
Please guide me with some books with PHP OOP examples and concepts...
Note: I am assuming by 'PHP to PHP5' you mean from PHP4 to PHP5. PHP5 is not a different languages from PHP, it is simply a different version.
PHP4 to PHP5
Here is the main differences between PHP4 and PHP5.
http://www.php.net/manual/en/migration5.php
The specific OOP changes are featured in the Object Model
http://www.php.net/manual/en/migration5.oop.php
One of the places that page points that will give you the basics to how OOP works in PHP would be the Classes and Object reference page:
http://www.php.net/manual/en/language.oop5.php
PHP Class Examples
If you want some specific examples of how OOP is used in PHP, you might want to look at my answer on some basic classes you might use in a web development setting:
https://stackoverflow.com/questions/2035449/why-is-oop-hard-for-me/2035482#2035482
Learning PHP
To learn PHP, you can do a search on PHP and OOP on StackOverflow, and the first few results give you resources to do so:
https://stackoverflow.com/search?q=php+oop
If you want to skip clicking the link, you can just go to http://php.net, cause I guarentee that almost all of them point there. PHP has one of the best documentations out there, and it is extremely easy to use, and you will return to it very, very often.
For the record, the first result talks about how to learn object-oriented programming in php.
PHP is a language. PHP 5 is a specific version of the language implementation, as opposed to 3, 4, or 6.
There are lots of alternatives to PHP. Almost any language can be used for web development via CGI, although it's more common to use a framework such as Django or Rails.
PHP5 removed register_globals, magic quotes, and safe mode. This was due to the fact that register_globals had opened security holes by intentionally allowing runtime data injection and the use of magic quotes had an unpredictable nature.