Hi,

Is it possible to include php file in python? in my application already header and left menu and footer are existing in php.

i want to include those files in my new python script. Plz tell me how to do this?


Thanks in advance
-Shyami

If your php file is pure html and javascript, then theoretically you can include it into the template you are using in python. How you do that, depends on the templating system, you are using.
Since you are not asking of a specific templating system (mako, genshi, cheetah..), you are not using one. So I am lost....

If your php file contains php program code (anything with <?php or similar), then python cannot execute it. Sorry.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.