Hi Fabio,
To the best of my knowledge, there is no way to integrate PHP and perl code - they are different scripting languages and are processed totally differently by the server. So you can't execute a cgi script on a page that has a .php extension, and vice versa.
The only way I know of that you can accomplish this is with frames (or an <IFRAME>). That way, you can have two different pages (one in PHP and the other a cgi) viewable in the same browser window at the same time.
Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund