PHP and CGI are often used to provide the same functionality to your website. While they cannot be used on the same page, they can both be used within the same website. However, for newcomers who are not familiar with CGI, we recommend learning PHP instead. The language is more easily learnt, there is more support and help available on the Internet, there are more freely available applications and the language is arguably faster and more powerful in a web
environment.