Sponsored Content
Full Discussion: Sandboxes for developers
Operating Systems Linux Debian Sandboxes for developers Post 302501920 by ziggy911 on Saturday 5th of March 2011 05:37:13 PM
Old 03-05-2011
Sandboxes for developers

hi guys,

I need to create a sandbox environment on my Debian based LAMP server for PHP/MySql development. Anyone who could point me in the right direction or share their insight?
 

3 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Honk if you love Solaris Developers!

Are you a developer for Solaris products? If so, check this out: http://sdc.sun.com/solaris8/ The media kit that comes includes the entire media pack (Solaris 8) for both Intel and Sparc architectures, and a cool spill-proof coffe mug (for those all-nighters you're going to pull playing with... (1 Reply)
Discussion started by: LivinFree
1 Replies

2. Android

Any Android Developers in the Forums?

I'm about to make the switch over to Android OS for my mobile phone. I'm thinking my first Android phone might be something like a Samsung Galaxy S or an HTC Desire HD, or I might wait for one of the new Android tablets coming out later this year (like the Samsung 7" tablet on Android). Was... (10 Replies)
Discussion started by: Neo
10 Replies

3. What is on Your Mind?

Dear Debian-Developers

As strolling along this thread, what is on my mind I am still quite upset about the security guidelines set by the developers of Debian or any distro based upon Debian. For a while I have been really blissed using squeeze. No trouble at all with almost nothing, but using wheezy trouble came up with... (9 Replies)
Discussion started by: 1in10
9 Replies
RUNKIT_SANDBOX_OUTPUT_HANDLER(3)					 1					  RUNKIT_SANDBOX_OUTPUT_HANDLER(3)

runkit_sandbox_output_handler - Specify a function to capture and/or process output from a runkit sandbox

SYNOPSIS
mixed runkit_sandbox_output_handler (object $sandbox, [mixed $callback]) DESCRIPTION
Ordinarily, anything output (such as with echo(3) or print(3)) will be output as though it were printed from the parent's scope. Using runkit_sandbox_output_handler(3) however, output generated by the sandbox (including errors), can be captured by a function outside of the sandbox. Note Sandbox support (required for runkit_lint(3), runkit_lint_file(3), and the Runkit_Sandbox class) is only available as of PHP 5.1.0 or specially patched versions of PHP 5.0, and requires that thread safety be enabled. See the README file included in the runkit package for more information. Note Deprecated As of runkit version 0.5, this function is deprecated and is scheduled to be removed from the package prior to a 1.0 release. The output handler for a given Runkit_Sandbox instance may be read/set using the array offset syntax shown on the Runkit_Sandbox class definition page. PARAMETERS
o $sandbox - Object instance of Runkit_Sandbox class on which to set output handling. o $callback - Name of a function which expects one parameter. Output generated by $sandbox will be passed to this callback. Anything returned by the callback will be displayed normally. If this parameter is not passed then output handling will not be changed. If a non- truth value is passed, output handling will be disabled and will revert to direct display. RETURN VALUES
Returns the name of the previously defined output handler callback, or FALSE if no handler was previously defined. EXAMPLES
Example #1 Feeding output to a variable <?php function capture_output($str) { $GLOBALS['sandbox_output'] .= $str; return ''; } $sandbox_output = ''; $php = new Runkit_Sandbox(); runkit_sandbox_output_handler($php, 'capture_output'); $php->echo("Hello "); $php->eval('var_dump("Excuse me");'); $php->die("I lost myself."); unset($php); echo "Sandbox Complete "; echo $sandbox_output; ?> The above example will output: Sandbox Complete Hello string(9) "Excuse me" I lost myself. PHP Documentation Group RUNKIT_SANDBOX_OUTPUT_HANDLER(3)
All times are GMT -4. The time now is 06:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy