in reply to When choosing perl/cgi

My experience is: if your using plain perl (and not mod_perl), all actions are pretty slow, PHP gives much faster speed, especially when using database connections. I have not done anything with mod_perl right now, but I'm sure I'll give it a try.
There are some nifty functions built right into PHP that I miss in plain Perl, but all in all Perl is the more mature language.

Replies are listed 'Best First'.
RE: RE: When choosing perl/cgi
by takshaka (Friar) on Jun 06, 2000 at 01:44 UTC
    There are some nifty functions built right into PHP that I miss in plain Perl,

    I don't do much with PHP so I'm curious... what are some of these functions?

      Well, for example:
      addslashes()... Returns a string with backslashes before characters that need to be quoted in database queries etc.
      stripslashes()... The opposite
      strip_tags()... This function tries to strip all HTML and PHP tags from the given string.
      There are some nice date/time-formatting functions too.
      All in all that's nothing that couldn't be done with good old regexps, but I don't always want to fuzz around with regexps.
        Ah. The addslashes() I did know about. It's not quite as nice as DBI placeholders.

        Thanks for the info.