PHD Project - Driver energy prediction
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

20 lines
445 B

<?php
require('header_auth.php');
header_auth('Qnb7jfeGZM');
require('http_errors.php');
define('TARGET_NAME', 'static_uploads/computed_columns.json');
if (!$in_fd = fopen('php://input', 'r')) {
HttpResponse::internal_server_error()->set_and_exit();
}
if (!$out_fd = fopen(TARGET_NAME, 'w+')) {
HttpResponse::internal_server_error()->set_and_exit();
}
while ($data = fread($in_fd, 4096)) {
fwrite($out_fd, $data);
}