1,105,208 Community Members

Using PHP and C++ together. What C++ can offer?

Member Avatar
nowewiesci
Newbie Poster
2 posts since Jan 2014
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

In which real situations have you seen C++ usage for web applications wth PHP?

I've looked throught the forum, I've asked uncle Google and I know that:
- PHP extensions can be written in C/C++
- there is a great amount of C/C++ libraries you can use in PHP projects
- C/C++ has a great efficiency (if you use if well)
- you can process a great amount of data with C/C++, write crawlers
- there is even FastCGI, Wt, CppCMS, etc...

But what's more? Maybe some specific server-side tasks? Can you list them?

I'm used to write in PHP but at University I have a long C++ course. Learning only for passing would be a shame.

I'll be grateful for help.

Member Avatar
Ancient Dragon
Achieved Level 70
27,580 posts since Aug 2005
Reputation Points: 5,231 [?]
Q&As Helped to Solve: 3,028 [?]
Skill Endorsements: 115 [?]
Team Colleague
Featured
Sponsor
 
1
 

c++ is used for a great deal more than web development. Most PC games and desktop apps are written in c++. c++ can also be used as CGI programs (google "CGI programming")

Member Avatar
cereal
Posting Virtuoso
1,710 posts since Aug 2007
Reputation Points: 461 [?]
Q&As Helped to Solve: 345 [?]
Skill Endorsements: 44 [?]
 
1
 

Check also HipHop: https://github.com/facebook/hhvm is used to convert PHP to C++ and speed up the execution of the code.

Member Avatar
nowewiesci
Newbie Poster
2 posts since Jan 2014
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks for answers! Can you list more for web programming?

Member Avatar
Ancient Dragon
Achieved Level 70
27,580 posts since Aug 2005
Reputation Points: 5,231 [?]
Q&As Helped to Solve: 3,028 [?]
Skill Endorsements: 115 [?]
Team Colleague
Featured
Sponsor
 
1
 

I only used it once -- to generate an HTML page from the results of SQL queries. Don't know why they wanted me to use c++ for that instead of PHP. I was on a team of about 100 programmers, some c, some web. I'm not a web programmer so I can't explain it. AFAIK PHP can access SQL, sometimes easier than c++.

Member Avatar
pritaeas
mod_pritaeas
11,292 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,832 [?]
Skill Endorsements: 155 [?]
Moderator
Featured
Sponsor
 
0
 

Maybe some specific server-side tasks?

You can use it to write UDF's for MySQL.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article