[PHP] PDO Changes from 5.0.x To 5.1.x
According to documentation, PDO globals constants in 5.0.3+ were changed to class constants in 5.1. Does anyone have a suggestion for portability of constants between the 5.0.x branch and the 5.1 branch without having to rewrite code. Besides the constants, what other differences exist in PDO for 5.0.x and 5.1 that may effect portability/functionality? Chris D. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Basic PDO Questions
I have a three quick PDO questions. 1) If a PDOStatement is created within a function or method, is it's server result set connection is automatically freed up when the function returns (I assume so, but want to make sure)? 2) Does setting a PDOStatement to null (PDOStatement = null) terminate the server result set connection (I assume so, but want to make sure)? 3) The documentation for PDO::quote encourages us to use prepared statements over the PDO::query() or PDO::exec() methods citing the economy and portability of prepared statements. For queries that will run only once, is there significantly more overhead using prepared statements rather than the PDO::query() or PDO::exec() methods? I know that that's kind of an unclear/subjective question, but I just don't know how to state it better. Thanks, Chris D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Injection- Which Mail function Parameters
Hello, When using the mail() function to send a simple mail message, which specific parameters of the function need to cleaned to prevent mail injection? First of all I am already validating the $to parameter to be a valid email address. After reading http://securephp.damonkohler.com/index.php/ Email_Injection, I gather the parameters that need to be cleaned to prevent mail injection are the $headers and the $additional_parameters. Is this correct? Do I also need to clean the $subject parameter to prevent mail injection? What about the $message parameter? Thanks, C Drozdowski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Injection- Which Mail function Parameters CORRECTED
Hello, When using the mail() function to send a simple mail message, which specific parameters of the function need to cleaned to prevent mail injection? First of all I am already validating the $to parameter to be a valid email address. After reading http://securephp.damonkohler.com/index.php/ Email_Injection, I gather the parameters that need to be cleaned to prevent mail injection are the $headers and the $additional_headers. Is this correct? Do I also need to clean the $subject parameter to prevent mail injection? What about the $message parameter? Thanks, C Drozdowski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Documenting Code Question
I need some help regarding documenting code. Say you have a function/method that takes an object as a parameter and/or returns an object. When documenting, do you specify the specific class of the object when listing the datatype in the docblock @param and @return specs or do you simply specify object? Thanks, Chris Drozdowski [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] The goto discussion on the Internals List
I perused the discussion about the inclusion of goto into the PHP language on the php.internals list. From a PHP end-user's perspective, I would suggest that rather than focusing on adding new language constructs such as goto, that the development team put 100% focus on making what it already has as fast and stable as possible (and maybe iron out the Unicode issue) so that the corporate and hosting community will more readily accept it. I've been begging my hosting company to upgrade to 5.0.x for months but they say we're going to wait until next year when it has stabilized. That's really frustrating because I find 5.x's current features so compelling and useful. Thanks, C Drozdowski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Deerpark (aka Firefox 1.1 alpha) URI's and PHP
Will PHP scripts that work properly with the current version (1.0.4) of Firefox need to be modified for the feature detailed below in Firefox 1.1? See: http://www.mozilla.org/projects/deerpark/new-web-dev-features.html URIs always sent as UTF8 URIs are now always sent to the server as UTF8, regardless of the linking page's encoding. This fixes images and links on sites with non-ASCII filenames. Thanks, C Drozdowski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php