On Wed, Apr 25, 2012 at 01:51:46PM -0400, Mark Haney wrote: > 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'm late to the conversation. Could you describe the page needs without doing so in terms of "php can do"? Navigate menus and copyright info and such sound like standard header/footer information. This can easily be handled in Perl. Even easier if you use Template::Toolkit or Mason or fill_in_the_blank templating. Navigation menus can be dynamically derived from a data structure defining previous/next relationships. > 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, the PHP generates some HTML, Perl does that well. > 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. Again, you haven't described why Perl can't create the same HTML the PHP does. -- Michael Rasmussen, Portland Oregon Other Adventures: http://www.jamhome.us/ or http://westy.saunter.us/ Fortune Cookie Fortune du courrier: It's not a problem unless it's chronic. ~ Linda Connor -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/