python script running through php (cli and mod-php differences)
here some difficulties with running python script through apache mod-php fname='/tmp/catalog.xml' http=urllib3.PoolManager() response=http.request('GET','https://xxxx/xxxxx.xml') doc=response.data.decode('UTF-8') print('Saving xml...') with open(fname,'w') as catalog: catalog.write(doc) print('Parsing...') this code executed from php script and perfectly works when i execute it from cli like that :…