Hi folks,
I'm currently trying to find my way around with calling Perl Scripts from within an html file ...
I started with something simple:
test.pl
Next I created an index.html file that looks something like that:
However if I try to open the index.html from within my browser it gives me a blank page. No Hello at all ...
If I extend the file like this:
It only says "It works". So at least the index.html can be opened and the html code is being executed. But what about the php/perl section ?
What's wrong here ?
By the way: I'm using Apache on AIX.
Regards,
Thomas
I'm currently trying to find my way around with calling Perl Scripts from within an html file ...
I started with something simple:
test.pl
Code:
#!/usr/bin/perl
print "Hello \n";
Next I created an index.html file that looks something like that:
Code:
<?php
exec("/usr/bin/perl /usr/local/apache2/htdocs/test.pl")
?>
However if I try to open the index.html from within my browser it gives me a blank page. No Hello at all ...
If I extend the file like this:
Code:
<html><body><h1>It works!</h1></body></html>
<?php
exec("/usr/bin/perl /usr/local/apache2/htdocs/test.pl")
?>
It only says "It works". So at least the index.html can be opened and the html code is being executed. But what about the php/perl section ?
What's wrong here ?
By the way: I'm using Apache on AIX.
Regards,
Thomas