Is there a PHP Sandbox, something like JSFiddle is to JS? [closed] - php

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Is there a PHP Sandbox, something like JSFiddle is to JS?

If you are just looking for an online site to play around with PHP code, try
http://phpfiddle.org/
http://ideone.com/
https://codeanywhere.net/
http://www.tehplayground.com/
http://sandbox.onlinephpfunctions.com/
http://codepad.org/
https://eval.in/
https://implode.io/ (permits attaching a version of the Laravel framework)
The most sophisticated is:
http://3v4l.org/
It lets you test your code in all PHP versions starting from PHP4.
If you want something for your local environment, the Runkit extension aims to provide a PHP Sandbox:
Instantiating the Runkit_Sandbox class creates a new thread with its own scope and program stack. Using a set of options passed to the constructor, this environment may be restricted to a subset of what the primary interpreter can do and provide a safer environment for executing user supplied code.
If you dont want to use Runkit but still want a PHP Console on your server, try
Jordi Boggiano's Blog - PHP Console in Your Browser
http://github.com/seldaek/php-console

Related

Hack back to php [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I was looking at the hack language of Facebook but I have a server running several php sites.
Now I was wondering if there is a tool that can convert hack back to php, so it can be run it on my server but I can develop in hack?
Hack is neither a subset nor a superset of PHP -- we've been calling it a "dialect". While writing a tool to convert many (but not all!) features from Hack to PHP might be possible right now, we don't believe it to be a good idea. This thread has some discussion and elaboration on why: https://github.com/facebook/hhvm/issues/2236 (Super short summary: you really want the runtime to be enforcing your type annotations.)
As that thread says, we do want a better PHP conversion story than we have right now, particularly for frameworks that don't want to convert over to Hack wholesale (since they'd lose most of their users/customers :)). We don't have anything yet, but have some ideas we haven't gotten around to working on yet.

Obfuscate PHP code (prevent source code viewing) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm working on a PHP project using a PHP framework which i would like sell.
Someone wants to test the code on their server first.
I do not want to give away the source.
So is it possible to obfuscate the code?
Or may be compile it?
My primary objective is, they should not be able to just take the code, once it is on their server and cheat me. Also I do not want them to handover the code to another developer and get it reverse engineered or changed.
I'm looking for a free solution if possible.
You can use Zend Guard to do the same so that it will encrypt your whole code and will compile it so that no one can use your source code. it works same as we do in JAVA as it create byte code in class files.
Go through this link Zend Guard
Zend Guard, the most widely accepted PHP encoding and obfuscation product on the market
it will do following tasks for you:
Prevent reverse engineering & unauthorized modifications
Protect your code from unauthorized use

PaaS that allows C++ code execution from PHP? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a web app written in PHP that shell_exec()'s a program written in C++ (which does some intensive calculations and returns a result back to PHP).
Do you know which PaaS providers allow this?
Have you looked at OpenShift by Red Hat? They have powerful customization capabilities (with scripts and such things) that allow you to do just about anything. Look for "action hooks". It's one of the mechanisms that allow you to customize your environment when certain events occur. For example, I used an action hook to install a custom version of Node.js upon application startup in order to circumvent the limitations of the pre-installed Node.js. You can certainly do the same with PHP.
OpenShift by Red Hat
Edit
I once was going to use it to develop a Node.js application that included a custom Node.js extension written in C++.

automated testing frameworks? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
how can i automate testing of a web based application?
What are some frameworks that i can use to write scripts that will run automatically / on demand and indicate success or failure?
You can use Selenium or PHPUnit
We have set up a hook with SVN so that on a commit, PHPUnit is run.
I would imagine you could do the same with git/CVS or whatever version control you use.
Microsoft has a awesome framework for generating, coding, and running automated UI tests, which is included with Visual Studio 2010.
You can use TFS to run your tests on demand or in response to a continuous integration.

Recommend a Linux or browser-based Venn diagram drawing tool [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for a tool to draw good-looking Venn diagrams, for use on a Linux-based PHP site, which already employs Flash for graph drawing (Open Flash Chart 2). Free (as in beer or speech) would be nice, but isn't essential.
So it should be one of the following (in my rough order of preference):
Browser based (Flash)
PHP library
Linux command line app
Web service
So far the options I'm aware of are:
Google Charts
Write something myself using PHP GD or Flash
Use Venny
Very easy to use and goes up to four groups.
Use the Google chart api.
Write something yourself using PHP GD or Flash.

Categories