From eee09e45c7dc08f00e74397809db450abf7c5d3c Mon Sep 17 00:00:00 2001 From: Torben Wilson Date: Tue, 12 Feb 2002 21:12:22 +0000 Subject: [PATCH] Added documentation for odbc_execute()'s file reading functionality. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70129 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/uodbc.xml | 53 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 47 insertions(+), 6 deletions(-) diff --git a/functions/uodbc.xml b/functions/uodbc.xml index 7515e386e7..6620460ea7 100644 --- a/functions/uodbc.xml +++ b/functions/uodbc.xml @@ -1,5 +1,5 @@ - + Unified ODBC functions ODBC @@ -451,12 +451,53 @@ Executes a statement prepared with - odbc_prepare. Returns - &true; on successful execution, - &false; otherwise. The array - parameters_array only needs to - be given if you really have parameters in your statement. + odbc_prepare. Returns &true; on successful + execution; &false; otherwise. The array + parameters_array only needs to be given if + you really have parameters in your statement. + + Parameters in parameter_array will be + substituted for placeholders in the prepared statement in order. + + + Any parameters in parameter_array which + start and end with single quotes will be taken as the name of a + file to read and send to the database server as the data for the + appropriate placeholder. + + + + As of PHP 4.1.1, this file reading functionality has the + following restrictions: + + + + File reading is not subject to any safe mode restrictions. + + + + + Remote files + are not supported. + + + + + If you wish to store a string which actually begins and ends + with single quotes, and you cannot escape them with + backslashes--for instance, if your server requires single + quotes to be escaped by doubling them ('') + instead of backslashing them (\')--then + you must use another mechanism to store them (such as + executing the query directly with + odbc_exec). + + + + +