Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Created by PhpStorm.
- * User: Tom-PC
- * Date: 16/01/2018
- * Time: 00:06
- */
- $calcType = $_POST['calcs'];
- $fileName = $_FILES['Filename']['name'];
- $target = "C:\\xampp\htdocs\uploaded_files";
- $fileTarget = $target.$fileName;
- $result = move_uploaded_file($_FILES['Filename']['tmp_name'],$fileTarget);
- $python_script = "C:\\xampp\htdocs\python_scripts\Report.py";
- echo $python_script;
- echo $calcType;
- echo $fileTarget;
- $python = "python ".$python_script." ".$fileTarget." ".$calcType;
- $done = exec($python);
- //header('Location: index.html');
- exit;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement