php with C (Linking the two program)
Moderator: General Moderators
-
kapil1089theking
- Forum Commoner
- Posts: 46
- Joined: Wed May 28, 2008 1:51 pm
- Location: Kolkata, India
- Contact:
php with C (Linking the two program)
I have written an html document where i can read two integers now i would like to add the two integers using a program add.c in the same folder, which will return the result again to the php page, can anybody help me to do this?
Re: php with C (Linking the two program)
Why not just use php for the adding? Or is the C doing something else?kapil1089theking wrote:I have written an html document where i can read two integers now i would like to add the two integers using a program add.c in the same folder, which will return the result again to the php page, can anybody help me to do this?
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Re: php with C (Linking the two program)
shell_exec() maybe?
-
kapil1089theking
- Forum Commoner
- Posts: 46
- Joined: Wed May 28, 2008 1:51 pm
- Location: Kolkata, India
- Contact:
Re: php with C (Linking the two program)
yes the c program is doing something else, I need to work with the same C file and get the returned value at the php page back.
can you write the syntax for shell_exec() statement?
can you write the syntax for shell_exec() statement?
-
kapil1089theking
- Forum Commoner
- Posts: 46
- Joined: Wed May 28, 2008 1:51 pm
- Location: Kolkata, India
- Contact:
Re: php with C (Linking the two program)
Thanx the problem is solved.