Actually, I wonder why you are not going to use both options! Use PHP for the web interface and write custom C ++ methods for the more complex actions you want to take. (Although PHP can handle most of them, too.) Basically, it will require less knowledge of PHP, and your knowledge in C ++ remains useful.
Keep in mind the limitations of hosting your web host if you are not going to host your site on your own system.
Also, understand that using C ++ for web development will limit you to the more general C ++ libraries. C ++ can be used to write platform-independent code, just like PHP. But not all libraries are supported on each platform.
Finally, PHP is already a powerful language, and there are many add-ons for PHP that you can reuse instead of writing yourself. However, most of PHP and all add-ins are written in C ++, although many simply forget that the code behind PHP had to be written in some language. Image processing, encryption, complex math, etc. All this has been done before for PHP. But this should not stop you from writing your own extensions ...
source share