On giovedì 23 ottobre 2003, alle 14:50, [EMAIL PROTECTED] wrote: > Hi everyone, I started using Perl scripts just a couple of weeks ago, > and now I'm trying to include my first script inside a table in a Php > page. The table is correct, I just want the perl script to fill a TD in > the table. Up to now I just wrote perl scripts which worked all alone in > the page, so I created a new CGI, called methods header, start_html, all > the print instructions, and finally end_html. > As I insert this script in the table, I know that I've to remove header, > start_html and end_html cause these are just printed in the page by > other php files. But doing this way there apperas an error. > What do I miss, or what do I wrongly removed? > Thanks, Paolo
I solved it by myself, just wanted to post the solution even if it's so simple, maybe it could useful for someone. I just forgot the first instruction of any perl script in HTML: print "Content-type: text/html\n\n"; I put this instruction just after #!/usr/bin/perl, and now anything works correctly, no need to print hear, start_html and end_html. Paolo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]