Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 3rd, 2007, 01:22 PM
Registered User
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Putting PHP in a C++ script

How would you include a PHP script into a C++ program. I want the PHP work the back end with the data base and recieve variable information from the C++ program which presents the dialog.

Old August 7th, 2007, 05:57 AM
Friend of Wrox
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts

not completely sure but I think that's impossible. You run PHP on a webserver and C++ is more likely to run on a clientside application or an dotNet webserver

__________________________________________________ ________
I am DJ Kat...that's my name. Its a D and a J and a Kat with a K.
Old August 8th, 2007, 06:49 AM
Registered User
Join Date: Jul 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shimul39 Send a message via Yahoo to shimul39

interaction with PHP and c/c++ would be possible. But your question doesn't such clear to me. I don't think you need to include php with C++. rather you need to call C++'s function from PHP, right?

And if you want to call PHP's function from C++, Make something like Webservice. Where you will call a URl with specific parameter and it will return your result. Doesn't need to know weather you use PHP or Asp or JSp.

Anyways different situation need different technique. Obviously there have some limitation. These will depend on your requirements.

Find the PHP_and_C.pdf file from http://tech.groups.yahoo.com/group/phpresource/files/ location.
Hope this helps.



Similar Threads
Thread Thread Starter Forum Replies Last Post
php script m_29 Beginning PHP 2 October 5th, 2008 06:53 PM
send variables from a PHP script..... ethantinder Beginning PHP 2 June 23rd, 2008 02:45 PM
PHP Login script problem columbo1977 Beginning PHP 1 May 21st, 2006 10:47 PM
Can anyone help with this php script plz benzspida Beginning PHP 3 May 11th, 2006 05:54 AM
Call and run CGI script from a PHP script ... how? dbruins BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 June 10th, 2003 03:09 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.