How to embed python in php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kushaljutta
Forum Commoner
Posts: 50
Joined: Fri Dec 26, 2008 11:05 am

How to embed python in php

Post by kushaljutta »

HI can anyone tell me

how to embed python in php and tell me the procedure


thanks in advance
kushaljutta
Forum Commoner
Posts: 50
Joined: Fri Dec 26, 2008 11:05 am

Re: How to embed python in php

Post by kushaljutta »

kushaljutta wrote:HI can anyone tell me

how to embed python in php and tell me the procedure


thanks in advance
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How to embed python in php

Post by requinix »

You can't.

Either rewrite the Python code in PHP or use PHP to run the .py script.
kushaljutta
Forum Commoner
Posts: 50
Joined: Fri Dec 26, 2008 11:05 am

Re: How to embed python in php

Post by kushaljutta »

i developed one chess game in python script

so i want to display that game in window using php..

can u tell me the procedure how to run the .py file in php
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How to embed python in php

Post by requinix »

kushaljutta wrote:can u tell me the procedure how to run the .py file in php
I gave you a link. Go there and look around.

I'm not going to tell you exactly what to do. You'll have to do some thinking on your own.
kushaljutta
Forum Commoner
Posts: 50
Joined: Fri Dec 26, 2008 11:05 am

Re: How to embed python in php

Post by kushaljutta »

where is the link
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: How to embed python in php

Post by requinix »

kushaljutta wrote:where is the link
It's in my first post, in blue - like the words "first post" I just used.
kushaljutta
Forum Commoner
Posts: 50
Joined: Fri Dec 26, 2008 11:05 am

Re: How to embed python in php

Post by kushaljutta »

ok i got thanQ
Post Reply