'.$result); // Get the output buffer content and clean it $output = ob_get_clean(); // Echo the output echo $output; } else { echo "Error: Invalid response from remote server"; } } curl_close($ch); ?>