[PHP-DOC] Bug #15517 Updated: odbc_execute() special quoted parameter handling not documented
ID: 15517 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: All PHP Version: 4.1.1 Assigned To: torben New Comment: This bug has been fixed in CVS. Previous Comments: [2002-02-11 22:16:19] [EMAIL PROTECTED] Just assigning to myself--but if anyone can answer my question about escaping quotes, I'd be much obliged. :) Torben [2002-02-11 22:15:26] [EMAIL PROTECTED] If one of the parameters in the array passed to odbc_execute() starts and ends with single quotes, that parameter will be taken as the name of a file to read and send instead of a string to be subsituted in the prepared statement. I'll add this later tonight, but I'm wondering: how can one use a string which begins and ends with single quotes as a parameter without this happening if one is stuck with using '' to escape single quotes instead of \'? Unless I'm missing something, I'll add that as a feature request later today. Torben -- Edit this bug report at http://bugs.php.net/?id=15517&edit=1
[PHP-DOC] cvs: phpdoc /fr/functions cyrus.xml iisfunc.xml muscat.xml
damsTue Feb 12 21:35:58 2002 EDT Added files: /phpdoc/fr/functionsiisfunc.xml muscat.xml cyrus.xml Log: Early Translation. Index: phpdoc/fr/functions/iisfunc.xml +++ phpdoc/fr/functions/iisfunc.xml Fonction d'administration d'IIS Fonctions IIS Cette extension n'est disponible que pour Windows. Elle fournit des fonctions d'administration de Microsoft Internet Information Server (IIS). Cette extension inclut des fonctions pour créer des sites web et des dossiers virtuels, ainsi que pour configurer la sécurité et le mappage de scripts. Ces fonctions ont été ajouées en PHP. iis_get_server_by_path Retourne le numéro d'instance associé avec le Path Description intiis_get_server_by_path stringpath Chaque serveur virtuel sous IIS est représenté par un numéro d'instance. iis_get_server_by_path trouve ce numéro d'instance à partir du chemin physique jusqu'à la racine du dossier. iis_get_server_by_comment Retourne le numéro d'instance associé à un Comment Description intiis_get_server_by_comment stringcomment iis_add_server Crée un nouveau serveur web virtuel Description intiis_add_server stringpath stringcomment stringserver_ip intport stringhost_name intrights intstart_server iis_remove_server Supprime le serveur web représenté par ServerInstance Description intiis_remove_server intserver_instance iis_set_dir_security Modifie la configuration de sécurité du dossier Description intiis_set_dir_security intserver_instance stringvirtual_path intdirectory_flags iis_get_dir_security Lit la configuration de sécurité du dossier Description intiis_get_dir_security intserver_instance stringvirtual_path iis_set_server_rights Modifie les droits du serveurs Description intiis_set_server_rights intserver_instance stringvirtual_path intdirectory_flags iis_get_server_rights Lit les droits du serveurs Description intiis_get_server_rights intserver_instance stringvirtual_path iis_set_script_map Modifle le mappage de script pour un dossier virtuel Description intiis_set_script_map intserver_instance stringvirtual_path stringscript_extension stringengine_path intallow_scripting iis_get_script_map Lit le mappage de script dans un dossier virtuel donné Description intiis_get_script_map intserver_instance stringvirtual_path stringscript_extension iis_set_app_settings Crée un espace d'exécution pour une application dans un dossier virtuel Description intiis_set_app_settings intserver_instance stringvirtual_path stringapplication_scope iis_start_server Démarre le serveur web virtuel Description intiis_start_server intserver_instance iis_stop_server Stoppe le serveur web virtuel Description intiis_stop_server intserver_instance iis_stop_service Stoppe le service définit par ServiceId Description intiis_stop_service stringservice_id iis_start_service Démarre le service définit par ServiceId Description intiis_start_service stringservice_id iis_get_service_state Démarre le service définit par ServiceId Description intiis_get_service_state stringservice_id Index: phpdoc/fr/functions/muscat.xml +++ phpdoc/fr/functions/muscat.xml Fonctions muscat Fonctions muscat muscat_setup Crée une nouvelle session Description resourcemuscat_setup intsize stringmuscat_dir &warn.experimental.func; &warn.undocumented.func; size est la quantité de mémoire allouée, en octets. muscat_dir est le dossier d'installation de muscat, c'est à dire "/usr/local/empower", par défaut. muscat_setup_net Crée une nouvelle session muscat Description resourcemuscat_setup_n
[PHP-DOC] cvs: phpdoc /pl/functions math.xml
slawek Tue Feb 12 17:33:21 2002 EDT Modified files: /phpdoc/pl/functionsmath.xml Log: Repaired title Index: phpdoc/pl/functions/math.xml diff -u phpdoc/pl/functions/math.xml:1.13 phpdoc/pl/functions/math.xml:1.14 --- phpdoc/pl/functions/math.xml:1.13 Wed Feb 6 16:21:34 2002 +++ phpdoc/pl/functions/math.xmlTue Feb 12 17:33:20 2002 @@ -1,8 +1,8 @@ - + - Matematyczne + Matematyka Matematyka
[PHP-DOC] cvs: phpdoc /en/features file-upload.xml
jan Tue Feb 12 17:21:56 2002 EDT Modified files: /phpdoc/en/features file-upload.xml Log: - fixing example, reported by Till Gerken Index: phpdoc/en/features/file-upload.xml diff -u phpdoc/en/features/file-upload.xml:1.32 phpdoc/en/features/file-upload.xml:1.33 --- phpdoc/en/features/file-upload.xml:1.32 Wed Feb 6 20:26:48 2002 +++ phpdoc/en/features/file-upload.xml Tue Feb 12 17:21:55 2002 @@ -1,5 +1,5 @@ - + Handling file uploads @@ -192,13 +192,13 @@
[PHP-DOC] Bug #13292 Updated: file_exists works with UNC names
ID: 13292 Updated by: [EMAIL PROTECTED] -Reported By: [EMAIL PROTECTED] +Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Documentation problem Operating System: Windows NT/2000 PHP Version: 4.0.6 New Comment: I'm using IIS 5.0 on Windows 2000. I installed PHP 4.1.1 configured to be a CGI interpreter. I'm trying to require a file located on another W2K computer on our LAN with this code: require 'computername\\sharename\\functions.php'; However, when I try to execute this PHP script, I get this error: Fatal error: Failed opening required '\\computername\sharename\functions.php' (include_path='..') in c:\inetpub\wwwroot\keygen\index.php on line 3 Supposedly this functionality is supported with PHP 4.1.1, but I'm not sure why it isn't working for me. The share is a local share and full access is granted to everyone. Previous Comments: [2001-12-15 05:54:56] [EMAIL PROTECTED] Markus noted that you should always use double backslashes (or single slashes): "computername\\share\\filename" BTW: sorry for the typo Christoph... ;) [2001-12-15 05:25:33] [EMAIL PROTECTED] Actually, it does work!!! Use "//computername/share/filename" or "computername\share\filename" Thanks to Christph Grottolo for the tip. Now it's only a documentation problem. [2001-12-14 14:38:09] [EMAIL PROTECTED] Doesn't work with 4.1.0 nor with 4.2.0-dev. [2001-12-14 14:29:39] [EMAIL PROTECTED] This is not a Scripting Engine Problem, but a FIle System function report. [2001-12-14 14:28:20] [EMAIL PROTECTED] Any updates for this? This is a known issue for a long time. To reporter: I don't use windows. Could you try 4.1.0 and report the result? The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/13292 -- Edit this bug report at http://bugs.php.net/?id=13292&edit=1
[PHP-DOC] cvs: phpdoc /en/functions uodbc.xml
torben Tue Feb 12 16:23:08 2002 EDT Modified files: /phpdoc/en/functionsuodbc.xml Log: Clear this up a little. Index: phpdoc/en/functions/uodbc.xml diff -u phpdoc/en/functions/uodbc.xml:1.31 phpdoc/en/functions/uodbc.xml:1.32 --- phpdoc/en/functions/uodbc.xml:1.31 Tue Feb 12 16:12:22 2002 +++ phpdoc/en/functions/uodbc.xml Tue Feb 12 16:23:06 2002 @@ -1,5 +1,5 @@ - + Unified ODBC functions ODBC @@ -486,13 +486,12 @@ 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). + with single quotes, you must escape them or add a space or + other non-single-quote character to the beginning or end of + the parameter, which will prevent the parameter's being taken + as a file name. If this is not an option, then you must use + another mechanism to store the string, such as executing the + query directly with odbc_exec).
[PHP-DOC] cvs: phpdoc /en/functions uodbc.xml
torben Tue Feb 12 16:12:23 2002 EDT Modified files: /phpdoc/en/functionsuodbc.xml Log: Added documentation for odbc_execute()'s file reading functionality. Index: phpdoc/en/functions/uodbc.xml diff -u phpdoc/en/functions/uodbc.xml:1.30 phpdoc/en/functions/uodbc.xml:1.31 --- phpdoc/en/functions/uodbc.xml:1.30 Sat Feb 2 10:36:10 2002 +++ phpdoc/en/functions/uodbc.xml Tue Feb 12 16:12:22 2002 @@ -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). + + + + +
[PHP-DOC] cvs: phpdoc /he/faq obtaining.xml
gal Tue Feb 12 15:52:21 2002 EDT Modified files: /phpdoc/he/faq obtaining.xml Log: Adding new revision tag Index: phpdoc/he/faq/obtaining.xml diff -u phpdoc/he/faq/obtaining.xml:1.2 phpdoc/he/faq/obtaining.xml:1.3 --- phpdoc/he/faq/obtaining.xml:1.2 Sat Feb 9 17:45:10 2002 +++ phpdoc/he/faq/obtaining.xml Tue Feb 12 15:52:21 2002 @@ -1,5 +1,5 @@ - + äùâú PHP äùâú PHP
[PHP-DOC] cvs: phpdoc /he/faq migration.xml
gal Tue Feb 12 15:52:11 2002 EDT Modified files: /phpdoc/he/faq migration.xml Log: Adding new revision tag Index: phpdoc/he/faq/migration.xml diff -u phpdoc/he/faq/migration.xml:1.1 phpdoc/he/faq/migration.xml:1.2 --- phpdoc/he/faq/migration.xml:1.1 Wed Jan 30 12:08:56 2002 +++ phpdoc/he/faq/migration.xml Tue Feb 12 15:52:11 2002 @@ -1,5 +1,5 @@ - + îòáø î-PHP 2 ì-PHP 3 îòáø î-PHP 2 ì-PHP 3
[PHP-DOC] cvs: phpdoc /he/faq migration4.xml
gal Tue Feb 12 15:52:00 2002 EDT Modified files: /phpdoc/he/faq migration4.xml Log: Adding new revision tag Index: phpdoc/he/faq/migration4.xml diff -u phpdoc/he/faq/migration4.xml:1.2 phpdoc/he/faq/migration4.xml:1.3 --- phpdoc/he/faq/migration4.xml:1.2Sat Feb 9 17:46:03 2002 +++ phpdoc/he/faq/migration4.xmlTue Feb 12 15:51:59 2002 @@ -1,5 +1,5 @@ - + îòáø î-PHP 3 ì-PHP 4 îòáø î-PHP 3 ì-PHP 4
[PHP-DOC] cvs: phpdoc /he/faq mailinglist.xml
gal Tue Feb 12 15:51:17 2002 EDT Modified files: /phpdoc/he/faq mailinglist.xml Log: Adding new revision tag Index: phpdoc/he/faq/mailinglist.xml diff -u phpdoc/he/faq/mailinglist.xml:1.2 phpdoc/he/faq/mailinglist.xml:1.3 --- phpdoc/he/faq/mailinglist.xml:1.2 Tue Jan 29 15:56:23 2002 +++ phpdoc/he/faq/mailinglist.xml Tue Feb 12 15:51:17 2002 @@ -1,5 +1,5 @@ - + øùéîåú úôåöä øùéîåú úôåöä
[PHP-DOC] cvs: phpdoc /he/faq html.xml
gal Tue Feb 12 15:51:04 2002 EDT Modified files: /phpdoc/he/faq html.xml Log: Adding new revision tag Index: phpdoc/he/faq/html.xml diff -u phpdoc/he/faq/html.xml:1.1 phpdoc/he/faq/html.xml:1.2 --- phpdoc/he/faq/html.xml:1.1 Tue Jan 29 16:41:10 2002 +++ phpdoc/he/faq/html.xml Tue Feb 12 15:51:04 2002 @@ -1,5 +1,5 @@ - + PHP å-HTML PHP å-HTML @@ -281,4 +281,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file
[PHP-DOC] cvs: phpdoc /he/faq general.xml
gal Tue Feb 12 15:50:19 2002 EDT Modified files: /phpdoc/he/faq general.xml Log: Adding new revision tag Index: phpdoc/he/faq/general.xml diff -u phpdoc/he/faq/general.xml:1.1 phpdoc/he/faq/general.xml:1.2 --- phpdoc/he/faq/general.xml:1.1 Thu Jan 24 19:00:58 2002 +++ phpdoc/he/faq/general.xml Tue Feb 12 15:50:19 2002 @@ -1,5 +1,5 @@ - + îéãò ëììé îéãò ëììé
[PHP-DOC] cvs: phpdoc / configure.in
gobaTue Feb 12 15:05:01 2002 EDT Modified files: /phpdoc configure.in Log: Correct a test error reported by Marco Cucinato, and remove the HTMLHELP vars, as we use our own htmlhelp.xsl and from it we directly include the HTML chunk.xsl Index: phpdoc/configure.in diff -u phpdoc/configure.in:1.133 phpdoc/configure.in:1.134 --- phpdoc/configure.in:1.133 Fri Feb 8 06:42:35 2002 +++ phpdoc/configure.in Tue Feb 12 15:05:01 2002 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.133 2002/02/08 11:42:35 goba Exp $ +dnl $Id: configure.in,v 1.134 2002/02/12 20:05:01 goba Exp $ dnl autoconf initialisation AC_INIT() @@ -288,10 +288,9 @@ AC_ARG_WITH(xsl, [ --with-xsl=[DIR]Look for XSL stylesheets in the specified DIR], [ - if test -f "$dir/html/docbook.xsl"; then + if test -f "$withval/html/docbook.xsl"; then DOCBOOKXSL_BIGHTML=$withval/html/docbook.xsl DOCBOOKXSL_HTML=$withval/html/chunk.xsl -DOCBOOKXSL_HTMLHELP=$withval/htmlhelp/htmlhelp.xsl DOCBOOKXSL_PRINT=$withval/fo/docbook.xsl AC_MSG_RESULT(in $withval) fi @@ -306,7 +305,6 @@ if test -f "$dir/html/docbook.xsl"; then DOCBOOKXSL_BIGHTML=$dir/html/docbook.xsl DOCBOOKXSL_HTML=$dir/html/chunk.xsl -DOCBOOKXSL_HTMLHELP=$dir/htmlhelp/htmlhelp.xsl DOCBOOKXSL_PRINT=$dir/fo/docbook.xsl AC_MSG_RESULT(autodetected: $dir) break @@ -318,8 +316,6 @@ fi AC_SUBST(DOCBOOKXSL_BIGHTML) AC_SUBST(DOCBOOKXSL_HTML) -AC_SUBST(DOCBOOKXSL_HTMLHELP) - AC_SUBST(DOCBOOKXSL_PRINT) dnl }}} @@ -333,7 +329,6 @@ [ DOCBOOKXSL_BIGHTML=$withval/html/docbook.xsl DOCBOOKXSL_HTML=$withval/html/chunk.xsl - DOCBOOKXSL_HTMLHELP=$withval/htmlhelp/htmlhelp.xsl DOCBOOKXSL_PRINT=$withval/fo/docbook.xsl AC_MSG_RESULT(in $withval) ]) @@ -342,7 +337,6 @@ fi AC_SUBST(DOCBOOKXSL_BIGHTML) AC_SUBST(DOCBOOKXSL_HTML) -AC_SUBST(DOCBOOKXSL_HTMLHELP) AC_SUBST(DOCBOOKXSL_PRINT) dnl }}}
[PHP-DOC] cvs: phpdoc /pl/functions bc.xml
slawek Tue Feb 12 15:03:07 2002 EDT Modified files: /phpdoc/pl/functionsbc.xml Log: Updated to EN 1.22 (no diff) Index: phpdoc/pl/functions/bc.xml diff -u phpdoc/pl/functions/bc.xml:1.9 phpdoc/pl/functions/bc.xml:1.10 --- phpdoc/pl/functions/bc.xml:1.9 Sun Feb 10 15:22:57 2002 +++ phpdoc/pl/functions/bc.xml Tue Feb 12 15:03:07 2002 @@ -1,6 +1,6 @@ - - + + BCMath Operacje arytmetyczne na liczbach o du¿ej precyzji BCMath
[PHP-DOC] cvs: phpdoc /en/functions bc.xml
slawek Tue Feb 12 15:02:39 2002 EDT Modified files: /phpdoc/en/functionsbc.xml Log: Added small para for newbies. Index: phpdoc/en/functions/bc.xml diff -u phpdoc/en/functions/bc.xml:1.21 phpdoc/en/functions/bc.xml:1.22 --- phpdoc/en/functions/bc.xml:1.21 Sat Feb 2 10:35:52 2002 +++ phpdoc/en/functions/bc.xml Tue Feb 12 15:02:38 2002 @@ -1,10 +1,14 @@ - + BCMath Arbitrary Precision Mathematics Functions BC math + +For arbitrary precision mathematics PHP offers the Binary Calculator which +supports numbers of any size and precision, represented as strings. + In PHP 4, these functions are only available if PHP was configured with --enable-bcmath.
[PHP-DOC] cvs: phpdoc /en/functions errorfunc.xml
hholzgraTue Feb 12 14:41:18 2002 EDT Modified files: /phpdoc/en/functionserrorfunc.xml Log: error_log 2nd parameter is optional, too Index: phpdoc/en/functions/errorfunc.xml diff -u phpdoc/en/functions/errorfunc.xml:1.23 phpdoc/en/functions/errorfunc.xml:1.24 --- phpdoc/en/functions/errorfunc.xml:1.23 Sat Feb 2 10:35:57 2002 +++ phpdoc/en/functions/errorfunc.xml Tue Feb 12 14:41:18 2002 @@ -1,5 +1,5 @@ - + Error Handling and Logging Functions Errors and Logging @@ -34,7 +34,7 @@ interror_log stringmessage - intmessage_type + intmessage_type stringdestination stringextra_headers
[PHP-DOC] Bug #15519 Updated: 403.1 Forbidden: Execute Access Forbidden
ID: 15519 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open -Bug Type: PWS related +Bug Type: Documentation problem Operating System: Windows 98 PHP Version: 4.1.1 New Comment: Making this a docu prob. Derick Previous Comments: [2002-02-12 08:56:53] [EMAIL PROTECTED] After I installed PHP on PWS, I couldn't execute my PHP scripts. I got following message: "403.1 Forbidden: Execute Access Forbidden" I have solved this problem by giving "execute" permission to "Home" directory in the PWS Personel Web Manager as following 1)Edit Properties 2)Click "execute" check box It's OK after that. -- Edit this bug report at http://bugs.php.net/?id=15519&edit=1
[PHP-DOC] cvs: phpdoc /it/functions array.xml
peruginiTue Feb 12 09:07:25 2002 EDT Modified files: /phpdoc/it/functionsarray.xml Log: Fidex typo. Th'x to scaro. Index: phpdoc/it/functions/array.xml diff -u phpdoc/it/functions/array.xml:1.44 phpdoc/it/functions/array.xml:1.45 --- phpdoc/it/functions/array.xml:1.44 Sun Feb 10 13:36:41 2002 +++ phpdoc/it/functions/array.xml Tue Feb 12 09:07:24 2002 @@ -5,7 +5,7 @@ Arrays -Queste funzioni permettono di manupolare e interagire con gli +Queste funzioni permettono di manipolare e interagire con gli array in vari modi. Gli Array sono indispensabili per immagazzinare, mantenere, e operare su gruppi di variabili.
[PHP-DOC] cvs: phpdoc /it translation.xml
peruginiTue Feb 12 08:50:53 2002 EDT Modified files: /phpdoc/it translation.xml Log: Fixed Gabriele Scaroni surname, scaro only for friend's, :-) Index: phpdoc/it/translation.xml diff -u phpdoc/it/translation.xml:1.13 phpdoc/it/translation.xml:1.14 --- phpdoc/it/translation.xml:1.13 Mon Feb 11 11:01:00 2002 +++ phpdoc/it/translation.xml Tue Feb 12 08:50:53 2002 @@ -35,7 +35,7 @@ - +
[PHP-DOC] cvs: phpdoc /en/functions strings.xml
yohgaki Tue Feb 12 04:13:33 2002 EDT Modified files: /phpdoc/en/functionsstrings.xml Log: Clarify strstr() description a little Index: phpdoc/en/functions/strings.xml diff -u phpdoc/en/functions/strings.xml:1.160 phpdoc/en/functions/strings.xml:1.161 --- phpdoc/en/functions/strings.xml:1.160 Fri Feb 8 09:12:05 2002 +++ phpdoc/en/functions/strings.xml Tue Feb 12 04:13:12 2002 @@ -1,5 +1,5 @@ - + String functions Strings @@ -3172,8 +3172,9 @@ stringneedle - Returns all of haystack from the first - occurrence of needle to the end. + Returns part of haystack string from the + first occurrence of needle to the end of + haystack. If needle is not found, returns &false;.