I have a page written in Perl by someone else. I don’t know Perl, so I wrote a PHP file that now refers to the Perl page. What I would like to do is insert a PHP file into a Perl file if a specific variable has been passed to the perl page. If I used PHP for both, I could just do
if ($_GET['sidebar']) include "embedded.php";
I know there are ways to read text files in Perl, but can I include a PHP file in a Perl file?
I assume this will not work because they are processed by different parts of the server, so there is not much hope, but maybe someone tried something like this.
source
share