remove blank pages in latex (pdf)

can someone check if it works?
with my python projects this works, but have no php setup.

http://stackoverflow.com/questions/5422997/sphinx-docs-remove-blank-pages-from-generated-pdfs