I have a PHP script that I am testing with XAMPP that will have a user upload a file, run file through Python script, then output an output Excel file. Everything works great on my local machine. However I want to put this tool on my works internal server (running Ubuntu Linux) so everyone can use the tool. The issue I am running into is that in my PHP script, I check the client's directory to ensure that the output directory is created, if not it is created for them. Since the tool has been moved to the Linux side, I am unsure how I can reference the users directories to check to see if a specific folder exist, or even to specify that location that output should be written.
One thought I had was to call a Python script to SFTP the selected file over to the Linux side, run the process, then SFTP the output file. However, the issue I have found is that I need to know the full path to the file in order to do so, and the upload process only seems to capture the file name itself (for security reasons I understand). Ultimately I could use a suggestion on how I can take this working PHP/Python process using XAMPP, and move it to a local Linux server and still be able to check the Windows file directories and create a Windows folder if needed.