skip to Main Content

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 :…

VIEW QUESTION

Apache – Pretty URLs with .htaccess rewrite engine

Hej, I'm trying to achieve a pretty urls for my site with rewrite engine. The goal is this - mysite.dk/da, mysite.dk/da/success and mysite.dk/da#scroll. So far my htaccess file looks like this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule…

VIEW QUESTION
Back To Top
Search