[prog] MySQL connections from PHP files - Close or keep it open
for queries?
Jacinta Richardson
jarich at perltraining.com.au
Mon May 2 11:20:27 EST 2005
Mary wrote:
> On Mon, May 02, 2005, Jacinta Richardson wrote:
>
>> Unfortunately placeholders are a fairly new addition to PHP and thus the
>>interface for them is not as clean as it could be. As a result there is an
>>awful lot of PHP code out there which doesn't use them. This includes
>>commercial software as well. Without placeholders it becomes a *lot*
>>harder to ensure that your code is safe from SQL injection attacks.
>
>
> Ah, I see you were using the term 'placeholder' in a PHP-specific way:
> my earlier reply assumes that it's a generic thing, like using FIXME
> comments on code you intend to replace/implement/fix later.
:) It's more a database programming specific way.
Your previous point is definately a good idea though.
Jacinta
--
("`-''-/").___..--''"`-._ | Jacinta Richardson |
`6_ 6 ) `-. ( ).`-.__.`) | Perl Training Australia |
(_Y_.)' ._ ) `._ `. ``-..-' | +61 3 9354 6001 |
_..`--'_..-_/ /--'_.' ,' | contact at perltraining.com.au |
(il),-'' (li),' ((!.-' | www.perltraining.com.au |
More information about the Programming
mailing list