I am in a project to convert a text file to xml using PHP and python. I am using ubuntu and apache2 server.
I have so far acheived to:
- Write PHP code that can select any text file from my local system after connecting to localhost. 
- Pass on the selected file from PHP to python script to convert it into xml. 
- After conversion of the text file the contents of the xml is getting stored in a newly created xml file in my local computer from where I fetched the text file (from /var/www/html/.....). 
My doubt is to:
- How can I send the xml file created by the python file to PHP script again. 
- How I can download the xml file from the PHP script into my local computer. 
Any suggestions regarding this is most appreciated. Thanks for help in advance.
 
     
    