NathanBrisk Posted July 26, 2007 Share Posted July 26, 2007 Is there any reason to write a web app using PHP and C++/C? Are there any benefits? Quote Link to comment Share on other sites More sharing options...
lightningstrike Posted July 26, 2007 Share Posted July 26, 2007 C/C++ are languages where the code is compiled so they run faster than applications in PHP which must be interpreted and turned into bytecode. Although some larger setups with PHP use bytecode caches. C/C++ could be then used to make program extensions for PHP, such as caching system, xml parser, encryption library, alternative database interface etc. Quote Link to comment Share on other sites More sharing options...
NathanBrisk Posted July 26, 2007 Author Share Posted July 26, 2007 If I were to make a complex web app that needs a database and is scaled across a couple of servers. Envision something like Myspace or YouTube, is there any reason I should consider not using simply PHP but using C/C++ as the backend? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 26, 2007 Share Posted July 26, 2007 the point to using a complied script like C/C++ is to handle large amounts of data manipulations that would take forever in PHP such as math functions. php is great for handling lots of little packets from many users however if you are having a large resource load on each user you might have issues with php and need to integrate a complied langauge Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.