I've got, what I hope is a fairly simple problem that someone can point me to the best (or best practices anyway) way to handle it.

I'm writing a web app that monitors embroidery machines and generates reports on various metrics for the company management. My issue arises from the fact that I've had to move from a pure perl web interface to PHP for it's additional feature set. Until now, all my output has been generated by perl CGI scripts and output to STDOUT directly, which is fine, but leaves the report rather sparse looking. (FTR, I'm no web designer, I'm here to make it work, not make it pretty, however, I do have to do some preliminary prettifying.)

That wasn't a real problem, but now I want to take that output and fold it into the PHP headers and footers I've built to keep from having to rewrite the navigation menus and copyright info and such and I can't quite figure out the best way to do it.

I'd really like to be able to output this report to the browser directly with PHP code in it to match the format of the rest of the interface, however, I can't seem to find anything remotely close to what I want. Here's an idea of what I'm doing now:

PHP form -> perl CGI -> perl generated HTML (STDOUT)

Here's what I'd like to do:

PHP form -> perl CGI -> perl generated PHP/HTML (STDOUT)

The only way I've come up with is to simply output the report data to disk as an HTML file and then include that output in a PHP page that is correctly formatted.

What is the best way to handle this? I'll take any and all suggestions. I've never had to do this particular function before so I'm grasping at straws.

Thanks.
--

Mark Haney
Software Developer/Consultant
AB Emblem
ma...@abemblem.com
Linux marius.homelinux 3.3.1-5.fc16.x86_64 GNU/Linux

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to