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? Link to comment https://forums.phpfreaks.com/topic/61917-solved-php-and-cc/ 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. Link to comment https://forums.phpfreaks.com/topic/61917-solved-php-and-cc/#findComment-308294 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? Link to comment https://forums.phpfreaks.com/topic/61917-solved-php-and-cc/#findComment-308313 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 Link to comment https://forums.phpfreaks.com/topic/61917-solved-php-and-cc/#findComment-308319 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.