Commit 0c541874 authored by Gudipaty Aniket's avatar Gudipaty Aniket

slightly modified execute

parent 4f8a5487
...@@ -9,14 +9,14 @@ $input_data = $postData['input_data']; ...@@ -9,14 +9,14 @@ $input_data = $postData['input_data'];
$ret_stat = 0; $ret_stat = 0;
$template = $uid . strval(rand(1, 1000000)); $template = strval(rand(1, 1000000));
$in_fname = "temp_in" . $template; $in_fname = $uid . "/" . "temp_in" . $template;
$file = fopen($in_fname, 'w'); $file = fopen($in_fname, 'w');
file_put_contents($in_fname, $input_data); file_put_contents($in_fname, $input_data);
fclose($file); fclose($file);
$out_fname = "temp_out" . $template; $out_fname = $uid . "/" . "temp_out" . $template;
if(strcmp($language, "cpp") == 0) if(strcmp($language, "cpp") == 0)
{ {
...@@ -50,4 +50,4 @@ else ...@@ -50,4 +50,4 @@ else
unlink($in_fname); unlink($in_fname);
unlink($out_fname); unlink($out_fname);
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment