How can i call c++ functions in php?

Reply

Join Date: Dec 2004
Posts: 2
Reputation: vrgopakumar is an unknown quantity at this point 
Solved Threads: 0
vrgopakumar vrgopakumar is offline Offline
Newbie Poster

How can i call c++ functions in php?

 
0
  #1
Dec 16th, 2004
I have to call some c++ functions in php files. how can i create an extention dll which will work with php.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 127
Reputation: ReDuX is an unknown quantity at this point 
Solved Threads: 5
ReDuX's Avatar
ReDuX ReDuX is offline Offline
Junior Poster

Re: How can i call c++ functions in php?

 
0
  #2
Dec 28th, 2004
If you are using php on a linux machine you can use the system function.

http://uk2.php.net/manual/en/function.system.php

Or if you are using Windows machines, you can use shell_exec function.

http://uk2.php.net/shell_exec

example:
[PHP]$Info = explode("\n", shell_exec(".\\progs\\program.exe"));
[/PHP]
Will dump the output of program.exe in folder /progs/ to $Info using next line carriage as the exploder/seperator.

Hope that helps
I'm pink, therefore, im spam.
http://www.vivaci.net - Quality Webhosting
http://gaming.vivaci.net - FAST UK Gaming servers
http://www.getsigned.org - Free Image Uploads
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2
Reputation: vrgopakumar is an unknown quantity at this point 
Solved Threads: 0
vrgopakumar vrgopakumar is offline Offline
Newbie Poster

Re: How can i call c++ functions in php?

 
0
  #3
Dec 28th, 2004
there is a techniq to do this using ext_skel
thank u.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC