PHP is mainly used to develop dynamic web pages, but can also be used as a general purpose programming language. You can comfortably expand the python with many frames such as Django, web2py, Flask and others. They can help create products that are only on the Internet and develop projects with a complete stack. You can also use C / C ++ programming language functions using an API available in the C source file.
However, depending on the project requirements and taking into account the characteristics of both languages, you should be able to decide the best for your project. Node.js, however, is a code that quickly and smoothly reduces loading requirements on the server. You even have access to callbacks, which waste a lot of time dealing with the many different threads. NodeJs has the libraries to access the SQL, but there is also a special format to work with the data.