Jump to content

Insert A Perl Script Into Php


Recommended Posts

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.picture2zst.pngWhen 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!

Edited by walapu
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...