walapu Posted August 13, 2009 Share Posted August 13, 2009 Hello I am trying to insert a perl script into php, with this line. echo shell_exec('blabla/cgi-bin/random_text.pl'); When I do this, for some reason it displays the header. Like so.When I do it in shtml like so <!--#exec cgi="blabla/cgi-bin/random_text.pl"--> it doesnt show the header.What can I do to fix this?EDIT: Nvm fixed it thanks though! Link to comment Share on other sites More sharing options...
justsomeguy Posted August 13, 2009 Share Posted August 13, 2009 How about changing the Perl script so that it doesn't send a header? The header is part of the output, if you're going to use shell_exec it's going to show the headers as text. Link to comment Share on other sites More sharing options...
walapu Posted August 13, 2009 Author Share Posted August 13, 2009 I know lol I fixed it already but thanks though. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.