Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php define('DEBUG', 'on'); define("WEBPATH", realpath(__DIR__.'/../')); require __DIR__..
Decoded Output download
<?php
define('DEBUG', 'on');
define("WEBPATH", realpath(__DIR__.'/../'));
require __DIR__ . '/../libs/lib_config.php';
Swoole\Config::$debug = false;
Swoole\Error::$echo_html = true;
class MyFastCGI extends Swoole\Protocol\FastCGI
{
function onRequest(Swoole\Request $request)
{
$response = new Swoole\Response;
$response->body = "hello world";
return $response;
}
}
$AppSvr = new MyFastCGI();
$AppSvr->setLogger(new \Swoole\Log\EchoLog(true));
/**
* swoole
* BlockTCP TCPwindows
* SelectTCP selectwindows
* EventTCP libeventlibevent
*/
$server = new \Swoole\Network\SelectTCP('0.0.0.0', 9001);
$server->setProtocol($AppSvr);
//$server->daemonize(); //
$server->run(array('worker_num' => 1, 'max_request' => 5000, 'log_file' => '/tmp/swoole.log'));
?>
Did this file decode correctly?
Original Code
<?php
define('DEBUG', 'on');
define("WEBPATH", realpath(__DIR__.'/../'));
require __DIR__ . '/../libs/lib_config.php';
Swoole\Config::$debug = false;
Swoole\Error::$echo_html = true;
class MyFastCGI extends Swoole\Protocol\FastCGI
{
function onRequest(Swoole\Request $request)
{
$response = new Swoole\Response;
$response->body = "hello world";
return $response;
}
}
$AppSvr = new MyFastCGI();
$AppSvr->setLogger(new \Swoole\Log\EchoLog(true));
/**
* swoole
* BlockTCP TCPwindows
* SelectTCP selectwindows
* EventTCP libeventlibevent
*/
$server = new \Swoole\Network\SelectTCP('0.0.0.0', 9001);
$server->setProtocol($AppSvr);
//$server->daemonize(); //
$server->run(array('worker_num' => 1, 'max_request' => 5000, 'log_file' => '/tmp/swoole.log'));
Function Calls
define | 1 |
Stats
MD5 | 0bb9d61640fbeda2078bf9f3632eeee2 |
Eval Count | 0 |
Decode Time | 102 ms |