in reply to Re: PHP vs Perl code compare
in thread PHP vs Perl code compare

More bad stuff:

Update: broquaint pointed out that PHP does have support for placeholders, which is a good thing. I must say that none of the PHP developers I've spoken to, has ever even heard of them. So use of placeholders in PHP doesn't seem very commonplace. However, my complaint on the automatic addition of backslashes on special characters in form variables still stands, which was my main gripe in that point.

The phrase "It has about as much support for placeholders as perl does natively" is one I just cannot grok. Perl does not have native SQL database support without DBI. DBI is the way to access SQL databases in Perl. Using placeholders is one of the first things you learn there. OTOH, AFAIK they're hardly even mentioned on PHP's manual website, and only under Oracle and ODBC. Don't you just hate it that every database has its own kind of access functions.

Replies are listed 'Best First'.
Re: Re: Re: PHP vs Perl code compare
by broquaint (Abbot) on Oct 28, 2002 at 13:12 UTC
    No support for placeholders in database access
    It has about as much support for placeholders as perl does natively. But if you're using the PEAR DB class then you can use placeholders as you would with perl's DBI.

    While I'm all for pointing out PHP's flaws as a language (which I am acutely aware of having used it extensively for 2 years) I'm just as wary as any language advocate about spreading false information.
    HTH

    _________
    broquaint