View Full Version : PHP and C++
Nightfire
12-08-2002, 08:10 PM
I've been playing with C++ for about 4 hours and as it's similar syntax to PHP, I'm wondering if there's some way to interact PHP with C++, or C++ with MySQL. The answer is probably no, but I can't see why it can't work, as flash and php interact with each other and their syntax is different
ConfusedOfLife
12-08-2002, 09:21 PM
Well, I played with C/C++ for a couple of month, but I never worked on it as a professional, but I think comparing it like this isn't right coz I think C is the mother of all the languages ( at least those that inherit it's syntax, PHP and Actions Scripted included) and as we know it's a language that famous operating systems ( Linux and Windows ) were written by it, so, even if it doesn't have ready2use functions for working with MySQL for example ( like in PHP), you surely have the option of writing what you need or even making MySQL itself from scratch! ( at least I think this way!)
Anyways, it's really better that someone who worked on these stuff joins in and answers coz I mainly came to see ppl replies on this. :D
mordred
12-08-2002, 10:30 PM
Nightfire, I think the answer depends on what you mean by "interacting" with each other. If for instance you want to query a MySQL database by a program you wrote in C++, you certainly can make use of predefined APIs:
http://www.mysql.com/documentation/mysql++/index.html
As for PHP... do you mean to write an extension? I believe that's also possible, since PHP is written in C, open sourced, and defines an interface which you can use for extension writing. If that's what you wanted to know.
Having said that, I'd have to admit I don't know C++ (:D), but maybe I could help you nonetheless.
Nightfire
12-08-2002, 10:41 PM
What I was thinking of making was a program or a game that a client downloaded and the scores/results of the person would be viewable online by a php page or something. Not sure what sort of thing's I'm after yet, or what I'm doing - just in a curious mode at the mo
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.