Re: Sanitizing potential MySQL strings with no database connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Your only option might be to do something "smart". You can't use the proper mysql functions without a connection to a
> database, but you refuse to connect to a database until after you perform validation...
>

More accurate to say that the file in which the function is stored
does not know if there is a connection or not. I would make such a
connection if I knew that none exist, but I do not want to interfere
with a possibly existing connection.


> You do realise you can have several db connections open at one time, so you could have one always open for the
> purpose of validation? Potentially wasteful, but the architecture in this idea is a little different from the norm.
>

Very wasteful indeed, I cannot be so irresponsible with this server.


--
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux