Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

{"file":"<?php\n\nif($_SERVER['REQUEST_METHOD'] === \"POST\"){\n\theader('Content-Type: ap..

Decoded Output download

{"file":"<?php

if($_SERVER['REQUEST_METHOD'] === \"POST\"){
	header('Content-Type: application\/json');
	$condition['result'] = false;
	if(isset($_POST['listnum'])){
		if(is_numeric($_POST['listnum'])){
			$myFile = \"\/var\/www\/html\/.list\/list\" . $_POST['listnum'];
			$handle = fopen($myFile, 'w');
			$data = $_POST['data'];
			fwrite($handle, $data);
			fclose();
			$condition['result'] = true;
		}
	}
	echo json_encode($condition);
}
"} ?>

Did this file decode correctly?

Original Code

{"file":"<?php\n\nif($_SERVER['REQUEST_METHOD'] === \"POST\"){\n\theader('Content-Type: application\/json');\n\t$condition['result'] = false;\n\tif(isset($_POST['listnum'])){\n\t\tif(is_numeric($_POST['listnum'])){\n\t\t\t$myFile = \"\/var\/www\/html\/.list\/list\" . $_POST['listnum'];\n\t\t\t$handle = fopen($myFile, 'w');\n\t\t\t$data = $_POST['data'];\n\t\t\tfwrite($handle, $data);\n\t\t\tfclose();\n\t\t\t$condition['result'] = true;\n\t\t}\n\t}\n\techo json_encode($condition);\n}\n"}

Function Calls

None

Variables

None

Stats

MD5 421167fa8fce2b99a61aaff863084cf6
Eval Count 0
Decode Time 88 ms