[ 'header' => "Content-type: application/json\r\n", 'method' => 'POST', 'content' => json_encode(['code' => $test_code]), ], ]; $context = stream_context_create($options); $result = file_get_contents($url, false, $context); if ($result === FALSE) { die("Error reaching process.php"); } $response = json_decode($result, true); if ($response && $response['success']) { $protected_file = 'protected_v11_0.lua'; file_put_contents($protected_file, $response['protected_code']); echo "Successfully generated $protected_file\n"; echo "Stats: " . json_encode($response['stats']) . "\n"; } else { echo "Error: " . ($response['error'] ?? 'Unknown error') . "\n"; echo "Full response: " . $result . "\n"; }