in reply to Starting a PHP file from Perl

I'd use option 4:

4) Find out what the PHP is doing and do it in Perl.

The bulk of the magic of WysiwygPro editor is client-side DHTML stuff. It only uses some server-side stuff to handle image uploads, the html upload itself and some other stuff.

Just start out by copy pasting the source of http://www.wysiwygpro.com/demos/demo1.php into a html page and then get it to work step-by-step.

Replies are listed 'Best First'.
Re^2: Starting a PHP file from Perl
by bradcathey (Prior) on Nov 14, 2004 at 13:39 UTC

    Great suggestion Jaap, but this is new ground for me. It looks like the initial .php file I'm trying to start up does does a OO call to fire up the editor:

    $editor = new wysiwygPro(); //send parameters $editor->set_code($content); //print it to the browser $editor->print_editor(720, 500);

    The editor class is in another .php file:

    class wysiwygPro { var $classname = "wysiwygPro"; //etc.

    I might be able to successfully call the editor, but I'm unclear how to integrate it with my Perl and the need to ultimately see it in the browser as HTML.

    But it's a path worth pursuing. If I can make it work, I'll do an update. Thanks.


    —Brad
    "Don't ever take a fence down until you know the reason it was put up." G. K. Chesterton