in reply to Running PHP

MonkPaul, I don't think you can. That's a wimpy answer, but I have struggled with this for a while. Here's the deal: I wrote a content manager based in Perl. However, I wanted to use this great wysiwyg text editor written in PHP. It would have been so easy to be able to call the editor from my Perl for the purposes of passing data, but I couldn't figure out a way to do it. I eventually had to learn enough PHP to tap the database for a session id that I write to MySQL on the Perl side so the PHP can then grab all the associated data.

Going the other way, from the text editor to the Perl was easy, as I could just call the Perl from the form action.

I thought I had asked about all this here at PMs, but I can't find it. However, at the time I was asking, here or in other forums, the answers came back negative. I wrote the author of the PHP editor and he said there was no way to bridge the gap--amazingly. I thought the fact the Perl and PHP are related would mean a simple connection between two programs written in both.

I've solved the problem for myself, but will watch this thread to see what others might have to say.


—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Replies are listed 'Best First'.
Re^2: Running PHP
by MonkPaul (Friar) on Apr 16, 2005 at 17:55 UTC
    Cheers mate,
    I thought it might be simple enough...as you said... they are supposed to be related.

    Damn this infernal project
    If you could let me know what you find out then i would be very grateful.

    MonkPaul.

      Where does this notion that Perl and PHP are somehow related come from? (Okay I know that the first versions of PHP were actually written in Perl.)

      /J\

        I thought that the basis of perl was that it was developed for a text formatting basis and was later developed for other uses. The main one still being text manipulation, hence its wide use of regex functions and its ability to utilise other languages.

        With PHP this is in a manner "the same" though dont quote me. Although its a much less rich language and is in primary designed for database and web fronted applications.

        Or am i wrong.