User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 427,847 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,780 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 7457 | Replies: 2
Reply
Join Date: Dec 2004
Posts: 2
Reputation: vrgopakumar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vrgopakumar vrgopakumar is offline Offline
Newbie Poster

How can i call c++ functions in php?

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2004
Location: in the j00-kay
Posts: 114
Reputation: ReDuX is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 5
ReDuX's Avatar
ReDuX ReDuX is offline Offline
Junior Poster

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

  #2  
Dec 27th, 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  
Join Date: Dec 2004
Posts: 2
Reputation: vrgopakumar is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vrgopakumar vrgopakumar is offline Offline
Newbie Poster

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

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

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:16 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC