• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Manual de php
 

Manual de php

on

  • 795 views

 

Statistics

Views

Total Views
795
Views on SlideShare
795
Embed Views
0

Actions

Likes
0
Downloads
12
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Manual de php Manual de php Document Transcript

    • Manual de PHPStig Sæther BakkenAlexander Aulbach Egon Schmid Jim WinsteadLars Torben Wilson Rasmus Lerdorf Andrei Zmievski Jouni Ahto
    • Editado por Rafael Martínez (Coordinador) Víctor Fernández Leonardo Boshell 08-07-2002 Copyright © 1997, 1998, 1999, 2000, 2001, 2002 por por el Grupo de documentación de PHPCopyrightEste manual es © Copyright 1997, 1998, 1999, 2000, 2001, 2002 por el Grupo dedocumentación de PHP. Los miembros de este grupo se encuentran listados en laprimera página de este manual.Este manual puede ser redistribuido bajo los términos de la "GNU General PublicLicense" publicada por la "Free Software Foundation"; tanto bajo la versión 2 deesta licencia o bajo versiones posteriores.La sección ’Extendiendo PHP 4.0’ de este manual es copyright © 2000 por ZendTechnologies, Ltd. Este material puede ser distribuido solamente bajo losterminos y condiciones de la Open Publication License, v1.0 ó posterior (la últimaversión está disponible en http://www.opencontent.org/openpub/).
    • Manual de PHPpor Stig Sæther Bakken, Alexander Aulbach, Egon Schmid, Jim Winstead, Lars Torben Wilson, Rasmus Lerdorf,Andrei Zmievski, y Jouni AhtoporEditado por Rafael Martínez (Coordinador)Editado por Víctor FernándezEditado por Leonardo BoshellPublicado 08-07-2002Copyright © 1997, 1998, 1999, 2000, 2001, 2002 por por el Grupo de documentación de PHPCopyrightEste manual es © Copyright 1997, 1998, 1999, 2000, 2001, 2002 por el Grupo de documentación de PHP. Losmiembros de este grupo se encuentran listados en la primera página de este manual.Este manual puede ser redistribuido bajo los términos de la "GNU General Public License" publicada por la "FreeSoftware Foundation"; tanto bajo la versión 2 de esta licencia o bajo versiones posteriores.La sección ’Extendiendo PHP 4.0’ de este manual es copyright © 2000 por Zend Technologies, Ltd. Este materialpuede ser distribuido solamente bajo los terminos y condiciones de la Open Publication License, v1.0 ó posterior (laúltima versión está disponible en http://www.opencontent.org/openpub/).
    • Tabla de contenidos Prefacio ........................................................................................................................................................i I. Conceptos Básicos ..................................................................................................................................1 1. Introducción ...................................................................................................................................1 Qué es PHP? .............................................................................................................................2 Qué se puede hacer con PHP? ..................................................................................................2 2. Instalación ......................................................................................................................................5 Bajándose la última versión......................................................................................................6 Instalación en sistemas UNIX ..................................................................................................6 Instrucciones Rápidas de Instalación (Versión Módulo de Apache) ..............................6 Configuración..................................................................................................................7 Módulo del Apache.........................................................................................................7 Módulo fhttpd .................................................................................................................7 CGI version.....................................................................................................................7 Opciones de soporte para Base de Datos ........................................................................8 Adabas D ...............................................................................................................8 dBase .....................................................................................................................8 filePro ....................................................................................................................8 mSQL ....................................................................................................................8 MySQL..................................................................................................................9 iODBC...................................................................................................................9 OpenLink ODBC...................................................................................................9 Oracle ....................................................................................................................9 PostgreSQL ...........................................................................................................9 Solid ....................................................................................................................10 Sybase..................................................................................................................10 Sybase-CT ...........................................................................................................10 Velocis .................................................................................................................10 Una librería a medida de ODBC .........................................................................11 ODBC Unificado .................................................................................................11 LDAP...................................................................................................................11 Otras opciones de configuración...................................................................................11 --with-mcrypt=DIR.............................................................................................12 --enable-sysvsem .................................................................................................12 --enable-sysvshm.................................................................................................12 --with-xml............................................................................................................12 --enable-maintainer-mode ...................................................................................12 --with-system-regex.............................................................................................12 --with-config-file-path .........................................................................................13 --with-exec-dir.....................................................................................................13 --enable-debug.....................................................................................................13 --enable-safe-mode..............................................................................................13 --enable-track-vars...............................................................................................13 --enable-magic-quotes .........................................................................................14 --enable-debugger................................................................................................14 --enable-discard-path...........................................................................................14 iv
    • --enable-bcmath...................................................................................................14 --enable-force-cgi-redirect ..................................................................................14 --disable-short-tags..............................................................................................15 --enable-url-includes ...........................................................................................15 --disable-syntax-hl...............................................................................................15 CPPFLAGS y LDFLAGS ...................................................................................15 Construyendo ................................................................................................................16 Probando .......................................................................................................................16 Comprobando la velocidad ...........................................................................................16 Instalación en sistemas Windows 95/98/NT...........................................................................16 Pasos Generales de Instalación .....................................................................................16 Windows 95/98/NT y PWS/IIS 3..................................................................................17 Windows NT e IIS 4 .....................................................................................................18 Windows 9x/NT y Apache 1.3.x...................................................................................19 Omni HTTPd 2.0b1 para Windows ..............................................................................19 Módulos del PHP ..........................................................................................................19 ¿Problemas?............................................................................................................................20 Lea las PMF (FAQ) .......................................................................................................20 Informes de error...........................................................................................................20 Otros problemas ............................................................................................................203. Configuración...............................................................................................................................22 El archivo de configuración ....................................................................................................23 Directivas Generales de Configuración.........................................................................23 Directivas de Configuración de Correo.........................................................................27 Directivas de Configuración de Modo Seguro ..............................................................28 Directivas de Configuración del Debugger ...................................................................28 Directivas de Carga de Extensiones ..............................................................................28 Directivas de Configuración de MySQL.......................................................................29 Directivas de Configuración de mSQL .........................................................................29 Directivas de Configuración de Postgres ......................................................................29 SESAM Configuration Directives.................................................................................30 Directivas de Configuración de Sybase ........................................................................30 Directivas de Configuración de Sybase-CT ..................................................................31 Directivas de Configuración de Informix......................................................................32 Directivas de Configuración de Matemática BC...........................................................33 Directivas de Configuración de Capacidades de los Navegadores................................33 Directivas Unificadas de Configuración de ODBC.......................................................334. Seguridad......................................................................................................................................35 Binarios CGI...........................................................................................................................36 Posibles ataques ............................................................................................................36 Caso 1: solamente se sirven ficheros publicos ..............................................................37 Caso 2: usando --enable-force-cgi-redirect...................................................................37 Caso 3: Usando doc_root or user_dir............................................................................37 Caso 4: Analizador PHP fuera del arbol web. ..............................................................38 Modulo Apache ......................................................................................................................38 v
    • II. Referencia del Lenguaje.....................................................................................................................40 5. Síntaxis básica..............................................................................................................................40 Saliendo de HTML .................................................................................................................41 Separación de instrucciones ...................................................................................................42 Comentarios............................................................................................................................43 6. Types ............................................................................................................................................44 Enteros....................................................................................................................................45 Números en punto flotante......................................................................................................45 Cadenas...................................................................................................................................45 Conversión de cadenas..................................................................................................47 Arrays .....................................................................................................................................48 Arrays unidimensionales...............................................................................................48 Arrays Multidimensionales...........................................................................................49 Objetos....................................................................................................................................50 Inicialización de Objetos...............................................................................................51 Type juggling..........................................................................................................................51 Forzado de tipos............................................................................................................52 7. Variables.......................................................................................................................................54 Conceptos Básicos..................................................................................................................55 Variables predefinidas.............................................................................................................56 Variables de Apache......................................................................................................56 Variables de entorno......................................................................................................58 Variables de PHP...........................................................................................................58 Ambito de las variables ..........................................................................................................59 Variables variables..................................................................................................................61 Variables externas a PHP........................................................................................................62 Formularios HTML (GET y POST) .............................................................................62 IMAGE SUBMIT variable names.......................................................................63 Cookies HTTP ..............................................................................................................63 Variables de entorno......................................................................................................64 Puntos en los nombres de variables de entrada.............................................................64 Determinando los tipos de variables .............................................................................65 8. Constantes ....................................................................................................................................66 Sintaxis ...................................................................................................................................67 Constantes predefinidas ..........................................................................................................68 9. Expresiones ..................................................................................................................................69 10. Operadores .................................................................................................................................73 Operadores Aritméticos..........................................................................................................74 Operadores de Asignación......................................................................................................74 Operadores Bit a bit................................................................................................................74 Operadores de Comparación ..................................................................................................75 Operador de ejecución............................................................................................................76 Operadores de Incremento/decremento ..................................................................................76 Operadores Lógicos................................................................................................................77 Precedencia de Operadores.....................................................................................................77 Operadores de Cadenas ..........................................................................................................78 11. Estructuras de Control................................................................................................................80 if ............................................................................................................................................81 vi
    • else .......................................................................................................................................81 elseif ...................................................................................................................................82 Sintaxis Alternativa de Estructuras de Control.......................................................................82 while .....................................................................................................................................83 do..while .............................................................................................................................84 for ..........................................................................................................................................85 foreach .................................................................................................................................86 break .....................................................................................................................................88 continue ...............................................................................................................................89 switch ...................................................................................................................................90 require() ..................................................................................................................................92 include()..................................................................................................................................93 require_once().........................................................................................................................96 include_once() ........................................................................................................................98 12. Funciones .................................................................................................................................100 Funciones definidas por el usuario .......................................................................................101 Parámetros de las funciones .................................................................................................101 Pasar parámetros por referencia..................................................................................101 Parámetros por defecto ...............................................................................................102 Lista de longitud variable de parámetros ....................................................................103 Devolver valores ...................................................................................................................103 old_function ....................................................................................................................104 Funciones variable................................................................................................................104 13. Clases y Objetos.......................................................................................................................106 class ...................................................................................................................................107 14. References Explained...............................................................................................................110 What References Are............................................................................................................111 What References Do.............................................................................................................111 What References Are Not.....................................................................................................112 Passing by Reference............................................................................................................112 Returning References ...........................................................................................................113 Unsetting References............................................................................................................114 Spotting References..............................................................................................................114 global References.....................................................................................................114 $this ..........................................................................................................................115III. Características.................................................................................................................................116 15. Manejando errores....................................................................................................................116 16. Creando y manipulando imágenes ...........................................................................................121 17. Autentificación HTTP con PHP ...............................................................................................123 18. Cookies.....................................................................................................................................126 19. Manejo de envío de ficheros.....................................................................................................128 Envío de archivos con el método POST ...............................................................................129 Errores comunes ...................................................................................................................131 Envío de multiples ficheros ..................................................................................................131 Soporte del método PUT ......................................................................................................132 20. Usando archivos remotos .........................................................................................................134 21. Manejando conexiones.............................................................................................................137 vii
    • 22. Conexiones persistentes a bases de datos.................................................................................139 23. Modo Seguro (Safe Mode).......................................................................................................142 Funciones restringidas/inhabilitadas por Modo Seguro .......................................................144 24. Using PHP from the command line .........................................................................................149IV. Referencia de las Funciones ...........................................................................................................162 I. Funciones específicas de Apache................................................................................................162 apache_child_terminate........................................................................................................163 apache_lookup_uri ...............................................................................................................163 apache_note ..........................................................................................................................164 apache_setenv .......................................................................................................................164 ascii2ebcdic ..........................................................................................................................164 ebcdic2ascii ..........................................................................................................................164 getallheaders .........................................................................................................................165 virtual....................................................................................................................................165 II. Funciones de matrices ...............................................................................................................167 array_change_key_case ........................................................................................................169 array_chunk ..........................................................................................................................169 array_count_values...............................................................................................................170 array_diff ..............................................................................................................................171 array_fill ...............................................................................................................................172 array_filter ............................................................................................................................172 array_flip...............................................................................................................................174 array_intersect ......................................................................................................................174 array_key_exists ...................................................................................................................175 array_keys.............................................................................................................................175 array_map .............................................................................................................................176 array_merge_recursive .........................................................................................................179 array_merge ..........................................................................................................................180 array_multisort .....................................................................................................................181 array_pad ..............................................................................................................................182 array_pop..............................................................................................................................183 array_push ............................................................................................................................183 array_rand.............................................................................................................................184 array_reduce .........................................................................................................................185 array_reverse ........................................................................................................................185 array_search..........................................................................................................................186 array_shift.............................................................................................................................186 array_slice.............................................................................................................................187 array_splice...........................................................................................................................188 array_sum .............................................................................................................................189 array_unique .........................................................................................................................190 array_unshift.........................................................................................................................191 array_values..........................................................................................................................192 array_walk ............................................................................................................................192 array......................................................................................................................................193 arsort .....................................................................................................................................194 asort ......................................................................................................................................194 viii
    • compact.................................................................................................................................195 count .....................................................................................................................................195 current...................................................................................................................................196 each.......................................................................................................................................196 end ........................................................................................................................................198 extract ...................................................................................................................................198 in_array.................................................................................................................................199 key ........................................................................................................................................200 krsort.....................................................................................................................................200 ksort ......................................................................................................................................201 list .........................................................................................................................................201 natcasesort ............................................................................................................................202 natsort ...................................................................................................................................202 next .......................................................................................................................................203 pos.........................................................................................................................................204 prev .......................................................................................................................................204 rango .....................................................................................................................................204 reset.......................................................................................................................................205 rsort.......................................................................................................................................205 shuffle ...................................................................................................................................205 sizeof.....................................................................................................................................206 sort ........................................................................................................................................206 uasort ....................................................................................................................................206 uksort ....................................................................................................................................207 usort ......................................................................................................................................207III. Funciones Aspell [deprecated].................................................................................................209 aspell_check-raw ..................................................................................................................210 aspell_check .........................................................................................................................210 aspell_new ............................................................................................................................210 aspell_suggest.......................................................................................................................211IV. Funciones matemáticas de precisión arbitraria BCMath .........................................................212 bcadd.....................................................................................................................................213 bccomp .................................................................................................................................213 bcdiv .....................................................................................................................................213 bcmod ...................................................................................................................................213 bcmul ....................................................................................................................................213 bcpow....................................................................................................................................214 bcscale ..................................................................................................................................214 bcsqrt ....................................................................................................................................214 bcsub.....................................................................................................................................214V. Funciones de compresión Bzip2 ...............................................................................................216 bzclose ..................................................................................................................................218 bzcompress ...........................................................................................................................218 bzdecompress .......................................................................................................................218 bzerrno..................................................................................................................................219 bzerror...................................................................................................................................219 bzerrstr..................................................................................................................................220 bzflush...................................................................................................................................220 ix
    • bzopen...................................................................................................................................220 bzread ...................................................................................................................................221 bzwrite ..................................................................................................................................221VI. Funciones de calendario...........................................................................................................223 cal_days_in_month...............................................................................................................225 cal_from_jd...........................................................................................................................225 cal_info .................................................................................................................................225 cal_to_jd ...............................................................................................................................225 easter_date ............................................................................................................................225 easter_days ...........................................................................................................................226 FrenchToJD ..........................................................................................................................227 GregorianToJD .....................................................................................................................227 JDDayOfWeek......................................................................................................................228 JDMonthName .....................................................................................................................228 JDToFrench ..........................................................................................................................229 JDToGregorian .....................................................................................................................229 JDToJewish...........................................................................................................................229 JDToJulian ............................................................................................................................229 jdtounix.................................................................................................................................229 JewishToJD...........................................................................................................................230 JulianToJD ............................................................................................................................230 unixtojd.................................................................................................................................230VII. Funciones del API de CCVS ..................................................................................................232 ccvs_add ...............................................................................................................................233 ccvs_auth ..............................................................................................................................233 ccvs_command .....................................................................................................................233 ccvs_count ............................................................................................................................233 ccvs_delete ...........................................................................................................................234 ccvs_done .............................................................................................................................234 ccvs_init................................................................................................................................234 ccvs_lookup..........................................................................................................................235 ccvs_new ..............................................................................................................................235 ccvs_report ...........................................................................................................................235 ccvs_return ...........................................................................................................................236 ccvs_reverse..........................................................................................................................236 ccvs_sale...............................................................................................................................236 ccvs_status............................................................................................................................237 ccvs_textvalue ......................................................................................................................237 ccvs_void ..............................................................................................................................237VIII. soporte de las funciones COM para Windows ......................................................................239 COM .....................................................................................................................................240 VARIANT.............................................................................................................................241 com_addref ...........................................................................................................................242 com_get ................................................................................................................................242 com_invoke...........................................................................................................................243 com_isenum..........................................................................................................................243 com_load_typelib .................................................................................................................243 com_load ..............................................................................................................................243 x
    • com_propget .........................................................................................................................244 com_propput.........................................................................................................................244 com_propset .........................................................................................................................244 com_release ..........................................................................................................................244 com_set.................................................................................................................................244IX. Funciones de Clases/Objectos .................................................................................................245 call_user_method_array .......................................................................................................248 call_user_method..................................................................................................................248 class_exists ...........................................................................................................................249 get_class_methods................................................................................................................249 get_class_vars.......................................................................................................................250 get_class ...............................................................................................................................252 get_declared_classes.............................................................................................................252 get_object_vars.....................................................................................................................252 get_parent_class ...................................................................................................................254 is_a........................................................................................................................................254 is_subclass_of.......................................................................................................................254 method_exists .......................................................................................................................254X. Funciones de ClibPDF ..............................................................................................................256 cpdf_add_annotation ............................................................................................................259 cpdf_add_outline ..................................................................................................................259 cpdf_arc ................................................................................................................................259 cpdf_begin_text ....................................................................................................................260 cpdf_circle ............................................................................................................................260 cpdf_clip ...............................................................................................................................260 cpdf_close.............................................................................................................................261 cpdf_closepath_fill_stroke....................................................................................................261 cpdf_closepath_stroke ..........................................................................................................261 cpdf_closepath......................................................................................................................261 cpdf_continue_text ...............................................................................................................262 cpdf_curveto .........................................................................................................................262 cpdf_end_text .......................................................................................................................262 cpdf_fill_stroke.....................................................................................................................263 cpdf_fill.................................................................................................................................263 cpdf_finalize_page................................................................................................................263 cpdf_finalize .........................................................................................................................263 cpdf_global_set_document_limits........................................................................................264 cpdf_import_jpeg .................................................................................................................264 cpdf_lineto............................................................................................................................264 cpdf_moveto .........................................................................................................................265 cpdf_newpath........................................................................................................................265 cpdf_open .............................................................................................................................265 cpdf_output_buffer ...............................................................................................................266 cpdf_page_init ......................................................................................................................266 cpdf_place_inline_image......................................................................................................266 cpdf_rect ...............................................................................................................................267 cpdf_restore ..........................................................................................................................267 cpdf_rlineto...........................................................................................................................267 xi
    • cpdf_rmoveto........................................................................................................................267 cpdf_rotate_text ....................................................................................................................268 cpdf_rotate............................................................................................................................268 cpdf_save_to_file..................................................................................................................268 cpdf_save ..............................................................................................................................269 cpdf_scale .............................................................................................................................269 cpdf_set_action_url ..............................................................................................................269 cpdf_set_char_spacing .........................................................................................................269 cpdf_set_creator ...................................................................................................................270 cpdf_set_current_page..........................................................................................................270 cpdf_set_font_directories .....................................................................................................270 cpdf_set_font_map_file ........................................................................................................270 cpdf_set_font ........................................................................................................................271 cpdf_set_horiz_scaling .........................................................................................................271 cpdf_set_keywords ...............................................................................................................271 cpdf_set_leading...................................................................................................................271 cpdf_set_page_animation .....................................................................................................272 cpdf_set_subject ...................................................................................................................272 cpdf_set_text_matrix ............................................................................................................272 cpdf_set_text_pos .................................................................................................................272 cpdf_set_text_rendering .......................................................................................................273 cpdf_set_text_rise.................................................................................................................273 cpdf_set_title ........................................................................................................................273 cpdf_set_viewer_preferences ...............................................................................................273 cpdf_set_word_spacing ........................................................................................................274 cpdf_setdash .........................................................................................................................274 cpdf_setflat ...........................................................................................................................274 cpdf_setgray_fill ...................................................................................................................274 cpdf_setgray_stroke..............................................................................................................275 cpdf_setgray .........................................................................................................................275 cpdf_setlinecap .....................................................................................................................275 cpdf_setlinejoin ....................................................................................................................275 cpdf_setlinewidth..................................................................................................................276 cpdf_setmiterlimit.................................................................................................................276 cpdf_setrgbcolor_fill.............................................................................................................276 cpdf_setrgbcolor_stroke .......................................................................................................276 cpdf_setrgbcolor ...................................................................................................................276 cpdf_show_xy.......................................................................................................................277 cpdf_show.............................................................................................................................277 cpdf_stringwidth...................................................................................................................277 cpdf_stroke ...........................................................................................................................278 cpdf_text ...............................................................................................................................278 cpdf_translate .......................................................................................................................278XI. Crack functions ........................................................................................................................279 crack_check ..........................................................................................................................281 crack_closedict .....................................................................................................................281 crack_getlastmessage ...........................................................................................................281 crack_opendict......................................................................................................................282 xii
    • XII. CURL, Client URL Library Functions ...................................................................................283 curl_close..............................................................................................................................284 curl_errno .............................................................................................................................284 curl_error ..............................................................................................................................284 curl_exec...............................................................................................................................284 curl_getinfo...........................................................................................................................285 curl_init.................................................................................................................................285 curl_setopt ............................................................................................................................285 curl_version ..........................................................................................................................288XIII. Funciones de pago electrónico ..............................................................................................289 cybercash_base64_decode....................................................................................................290 cybercash_base64_encode....................................................................................................290 cybercash_decr .....................................................................................................................290 cybercash_encr .....................................................................................................................290XIV. Crédit Mutuel CyberMUT functions ....................................................................................291 cybermut_creerformulairecm ...............................................................................................292 cybermut_creerreponsecm....................................................................................................292 cybermut_testmac.................................................................................................................293XV. Cyrus IMAP administration functions ...................................................................................295 cyrus_authenticate ................................................................................................................296 cyrus_bind ............................................................................................................................296 cyrus_close ...........................................................................................................................296 cyrus_connect .......................................................................................................................296 cyrus_query ..........................................................................................................................297 cyrus_unbind ........................................................................................................................297XVI. Character type functions .......................................................................................................298 ctype_alnum .........................................................................................................................299 ctype_alpha...........................................................................................................................299 ctype_cntrl ............................................................................................................................299 ctype_digit ............................................................................................................................299 ctype_graph ..........................................................................................................................299 ctype_lower ..........................................................................................................................300 ctype_print............................................................................................................................300 ctype_punct...........................................................................................................................300 ctype_space...........................................................................................................................300 ctype_upper ..........................................................................................................................301 ctype_xdigit ..........................................................................................................................301XVII. Funciones de la capa de abstraccion de bases de datos (dbm-style)....................................302 dba_close ..............................................................................................................................304 dba_delete.............................................................................................................................304 dba_exists .............................................................................................................................304 dba_fetch ..............................................................................................................................304 dba_firstkey ..........................................................................................................................305 dba_insert .............................................................................................................................305 dba_nextkey..........................................................................................................................305 dba_open...............................................................................................................................306 dba_optimize ........................................................................................................................306 dba_popen.............................................................................................................................306 xiii
    • dba_replace...........................................................................................................................307 dba_sync ...............................................................................................................................307XVIII. Funciones de fecha y hora ..................................................................................................309 checkdate ..............................................................................................................................310 date .......................................................................................................................................310 getdate...................................................................................................................................311 gettimeofday .........................................................................................................................312 gmdate ..................................................................................................................................312 gmmktime.............................................................................................................................313 gmstrftime.............................................................................................................................313 localtime ...............................................................................................................................313 microtime..............................................................................................................................314 mktime..................................................................................................................................314 strftime..................................................................................................................................315 strtotime................................................................................................................................316 time .......................................................................................................................................317XIX. Funciones para dBase ...........................................................................................................319 dbase_add_record .................................................................................................................320 dbase_close...........................................................................................................................320 dbase_create .........................................................................................................................320 dbase_delete_record .............................................................................................................321 dbase_get_record_with_names.............................................................................................321 dbase_get_record..................................................................................................................321 dbase_numfields ...................................................................................................................322 dbase_numrecords ................................................................................................................322 dbase_open ...........................................................................................................................322 dbase_pack ...........................................................................................................................323 dbase_replace_record ...........................................................................................................323XX. Funciones dbm .......................................................................................................................324 dblist .....................................................................................................................................325 dbmclose...............................................................................................................................325 dbmdelete .............................................................................................................................325 dbmexists ..............................................................................................................................325 dbmfetch ...............................................................................................................................325 dbmfirstkey ...........................................................................................................................325 dbminsert ..............................................................................................................................326 dbmnextkey ..........................................................................................................................326 dbmopen ...............................................................................................................................326 dbmreplace ...........................................................................................................................327XXI. dbx functions.........................................................................................................................328 dbx_close..............................................................................................................................331 dbx_compare ........................................................................................................................331 dbx_connect..........................................................................................................................332 dbx_error ..............................................................................................................................333 dbx_query .............................................................................................................................334 dbx_sort ................................................................................................................................337XXII. DB++ Functions ..................................................................................................................339 dbplus_add............................................................................................................................343 xiv
    • dbplus_aql.............................................................................................................................343 dbplus_chdir .........................................................................................................................343 dbplus_close .........................................................................................................................344 dbplus_curr ...........................................................................................................................344 dbplus_errcode .....................................................................................................................345 dbplus_errno .........................................................................................................................345 dbplus_find ...........................................................................................................................345 dbplus_first ...........................................................................................................................346 dbplus_flush..........................................................................................................................346 dbplus_freealllocks...............................................................................................................347 dbplus_freelock ....................................................................................................................347 dbplus_freerlocks .................................................................................................................347 dbplus_getlock......................................................................................................................348 dbplus_getunique..................................................................................................................348 dbplus_info ...........................................................................................................................349 dbplus_last............................................................................................................................349 dbplus_lockrel ......................................................................................................................349 dbplus_next...........................................................................................................................350 dbplus_open..........................................................................................................................350 dbplus_prev ..........................................................................................................................351 dbplus_rchperm ....................................................................................................................351 dbplus_rcreate.......................................................................................................................351 dbplus_rcrtexact....................................................................................................................352 dbplus_rcrtlike ......................................................................................................................352 dbplus_resolve ......................................................................................................................353 dbplus_restorepos .................................................................................................................353 dbplus_rkeys.........................................................................................................................353 dbplus_ropen ........................................................................................................................354 dbplus_rquery .......................................................................................................................354 dbplus_rrename ....................................................................................................................355 dbplus_rsecindex ..................................................................................................................355 dbplus_runlink......................................................................................................................355 dbplus_rzap...........................................................................................................................356 dbplus_savepos .....................................................................................................................356 dbplus_setindex ....................................................................................................................357 dbplus_setindexbynumber ....................................................................................................357 dbplus_sql.............................................................................................................................357 dbplus_tcl .............................................................................................................................358 dbplus_tremove ....................................................................................................................358 dbplus_undo .........................................................................................................................358 dbplus_undoprepare .............................................................................................................359 dbplus_unlockrel ..................................................................................................................359 dbplus_unselect ....................................................................................................................359 dbplus_update.......................................................................................................................360 dbplus_xlockrel ....................................................................................................................360 dbplus_xunlockrel ................................................................................................................360XXIII. Direct IO functions.............................................................................................................362 dio_close...............................................................................................................................363 xv
    • dio_fcntl................................................................................................................................363 dio_open ...............................................................................................................................363 dio_read ................................................................................................................................364 dio_seek................................................................................................................................364 dio_stat .................................................................................................................................365 dio_truncate ..........................................................................................................................365 dio_write...............................................................................................................................365XXIV. Funciones con directorios ..................................................................................................367 chdir......................................................................................................................................368 chroot....................................................................................................................................368 dir..........................................................................................................................................368 closedir .................................................................................................................................369 getcwd...................................................................................................................................369 opendir..................................................................................................................................369 readdir...................................................................................................................................369 rewinddir...............................................................................................................................370XXV. Funciones de DOM XML....................................................................................................371 DomAttribute->name ...........................................................................................................372 DomAttribute->specified ......................................................................................................372 DomAttribute->value............................................................................................................372 DomDocument->add_root [deprecated]...............................................................................372 DomDocument->create_attribute .........................................................................................373 DomDocument->create_cdata_section.................................................................................373 DomDocument->create_comment .......................................................................................373 DomDocument->create_element..........................................................................................374 DomDocument->create_entity_reference ............................................................................374 DomDocument->create_processing_instruction ..................................................................374 DomDocument->create_text_node.......................................................................................375 DomDocument->doctype .....................................................................................................375 DomDocument->document_element ...................................................................................375 DomDocument->dump_file..................................................................................................376 DomDocument->dump_mem...............................................................................................377 DomDocument->get_element_by_id ...................................................................................378 DomDocument->get_elements_by_tagname .......................................................................378 DomDocument->html_dump_mem .....................................................................................378 DomDocumentType->entities ..............................................................................................379 DomDocumentType->internal_subset..................................................................................379 DomDocumentType->name .................................................................................................379 DomDocumentType->notations ...........................................................................................380 DomDocumentType->public_id...........................................................................................380 DomDocumentType->system_id..........................................................................................381 DomElement->get_attribute_node .......................................................................................381 DomElement->get_attribute .................................................................................................381 DomElement->get_elements_by_tagname...........................................................................382 DomElement->has_attribute.................................................................................................382 DomElement->remove_attribute ..........................................................................................382 DomElement->set_attribute .................................................................................................383 DomElement->tagname........................................................................................................383 xvi
    • DomNode->append_child ....................................................................................................383 DomNode->append_sibling .................................................................................................385 DomNode->attributes ...........................................................................................................386 DomNode->child_nodes.......................................................................................................386 DomNode->clone_node .......................................................................................................386 DomNode->dump_node .......................................................................................................386 DomNode->first_child..........................................................................................................387 DomNode->get_content .......................................................................................................387 DomNode->has_attributess ..................................................................................................387 DomNode->has_child_nodes ...............................................................................................387 DomNode->insert_before.....................................................................................................388 DomNode->is_blank_node...................................................................................................388 DomNode->last_child ..........................................................................................................389 DomNode->next_sibling ......................................................................................................389 DomNode->node_name .......................................................................................................390 DomNode->node_type .........................................................................................................390 DomNode->node_value........................................................................................................391 DomNode->owner_document ..............................................................................................391 DomNode->parent_node ......................................................................................................392 DomNode->prefix.................................................................................................................392 DomNode->previous_sibling ...............................................................................................393 DomNode->remove_child ....................................................................................................393 DomNode->replace_child ....................................................................................................394 DomNode->replace_node.....................................................................................................394 DomNode->set_content........................................................................................................394 DomNode->set_name...........................................................................................................395 DomNode->unlink_node......................................................................................................395 DomProcessingInstruction->data .........................................................................................395 DomProcessingInstruction->target.......................................................................................395 domxml_new_doc ................................................................................................................396 domxml_open_file................................................................................................................396 domxml_open_mem .............................................................................................................397 domxml_version ...................................................................................................................397 domxml_xmltree...................................................................................................................398 xpath_eval_expression..........................................................................................................398 xpath_eval.............................................................................................................................398 xpath_new_context ...............................................................................................................399 xptr_eval ...............................................................................................................................399 xptr_new_context .................................................................................................................399XXVI. .NET functions ...................................................................................................................401 dotnet_load ...........................................................................................................................402XXVII. Error Handling and Logging Functions ............................................................................403 error_log ...............................................................................................................................404 error_reporting......................................................................................................................405 restore_error_handler ...........................................................................................................405 set_error_handler..................................................................................................................405 trigger_error..........................................................................................................................408 user_error..............................................................................................................................408 xvii
    • XXVIII. FrontBase Functions........................................................................................................410 fbsql_affected_rows..............................................................................................................412 fbsql_autocommit .................................................................................................................412 fbsql_change_user ................................................................................................................412 fbsql_close............................................................................................................................413 fbsql_commit........................................................................................................................413 fbsql_connect........................................................................................................................413 fbsql_create_blob .................................................................................................................414 fbsql_create_clob..................................................................................................................415 fbsql_create_db.....................................................................................................................415 fbsql_data_seek ....................................................................................................................416 fbsql_database_password .....................................................................................................417 fbsql_database ......................................................................................................................418 fbsql_db_query .....................................................................................................................418 fbsql_db_status .....................................................................................................................418 fbsql_drop_db.......................................................................................................................419 fbsql_errno............................................................................................................................419 fbsql_error ............................................................................................................................420 fbsql_fetch_array..................................................................................................................420 fbsql_fetch_assoc .................................................................................................................421 fbsql_fetch_field ...................................................................................................................422 fbsql_fetch_lengths...............................................................................................................423 fbsql_fetch_object ................................................................................................................423 fbsql_fetch_row ....................................................................................................................424 fbsql_field_flags ...................................................................................................................425 fbsql_field_len ......................................................................................................................425 fbsql_field_name ..................................................................................................................425 fbsql_field_seek....................................................................................................................426 fbsql_field_table ...................................................................................................................426 fbsql_field_type ....................................................................................................................426 fbsql_free_result ...................................................................................................................427 fbsql_get_autostart_info .......................................................................................................427 fbsql_hostname.....................................................................................................................428 fbsql_insert_id ......................................................................................................................428 fbsql_list_dbs........................................................................................................................429 fbsql_list_fields.....................................................................................................................429 fbsql_list_tables....................................................................................................................430 fbsql_next_result ..................................................................................................................430 fbsql_num_fields ..................................................................................................................431 fbsql_num_rows ...................................................................................................................431 fbsql_password .....................................................................................................................432 fbsql_pconnect......................................................................................................................432 fbsql_query ...........................................................................................................................433 fbsql_read_blob ....................................................................................................................434 fbsql_read_clob ....................................................................................................................435 fbsql_result ...........................................................................................................................435 fbsql_rollback .......................................................................................................................436 fbsql_select_db .....................................................................................................................436 xviii
    • fbsql_set_lob_mode..............................................................................................................437 fbsql_set_transaction ............................................................................................................437 fbsql_start_db .......................................................................................................................437 fbsql_stop_db .......................................................................................................................438 fbsql_tablename....................................................................................................................438 fbsql_username.....................................................................................................................439 fbsql_warnings .....................................................................................................................439XXIX. Funciones filePro................................................................................................................440 filepro_fieldcount..................................................................................................................441 filepro_fieldname..................................................................................................................441 filepro_fieldtype....................................................................................................................441 filepro_fieldwidth .................................................................................................................441 filepro_retrieve......................................................................................................................441 filepro_rowcount...................................................................................................................441 filepro....................................................................................................................................442XXX. Funciones del sistema de ficheros .......................................................................................443 basename ..............................................................................................................................444 chgrp .....................................................................................................................................444 chmod ...................................................................................................................................444 chown....................................................................................................................................445 clearstatcache........................................................................................................................445 copy ......................................................................................................................................445 delete.....................................................................................................................................446 dirname .................................................................................................................................446 disk_free_space ....................................................................................................................447 disk_total_space ...................................................................................................................447 diskfreespace ........................................................................................................................447 fclose.....................................................................................................................................448 feof........................................................................................................................................448 fflush .....................................................................................................................................448 fgetc ......................................................................................................................................449 fgetcsv...................................................................................................................................449 fgets ......................................................................................................................................450 fgetss.....................................................................................................................................450 file_exists ..............................................................................................................................451 file_get_contents...................................................................................................................451 file_get_wrapper_data ..........................................................................................................451 file_register_wrapper ............................................................................................................452 file .........................................................................................................................................453 fileatime ................................................................................................................................453 filectime ................................................................................................................................454 filegroup................................................................................................................................454 fileinode ................................................................................................................................454 filemtime...............................................................................................................................454 fileowner ...............................................................................................................................455 fileperms ...............................................................................................................................455 filesize...................................................................................................................................455 filetype ..................................................................................................................................455 xix
    • flock ......................................................................................................................................455 fopen .....................................................................................................................................456 fpassthru ...............................................................................................................................457 fputs ......................................................................................................................................458 fread......................................................................................................................................458 fscanf ....................................................................................................................................458 fseek......................................................................................................................................459 fstat .......................................................................................................................................460 ftell........................................................................................................................................460 ftruncate................................................................................................................................460 fwrite.....................................................................................................................................461 glob .......................................................................................................................................461 is_dir .....................................................................................................................................462 is_executable ........................................................................................................................462 is_file ....................................................................................................................................462 is_link ...................................................................................................................................462 is_readable............................................................................................................................463 is_uploaded_file....................................................................................................................463 is_writable ............................................................................................................................464 is_writeable...........................................................................................................................464 link........................................................................................................................................465 linkinfo .................................................................................................................................465 lstat .......................................................................................................................................465 mkdir.....................................................................................................................................466 move_uploaded_file..............................................................................................................466 parse_ini_file ........................................................................................................................467 pathinfo.................................................................................................................................469 pclose....................................................................................................................................470 popen ....................................................................................................................................470 readfile ..................................................................................................................................470 readlink .................................................................................................................................471 realpath .................................................................................................................................471 rename ..................................................................................................................................472 rewind ...................................................................................................................................472 rmdir .....................................................................................................................................472 set_file_buffer .......................................................................................................................472 stat.........................................................................................................................................473 symlink .................................................................................................................................473 tempnam ...............................................................................................................................474 tmpfile...................................................................................................................................474 touch .....................................................................................................................................475 umask....................................................................................................................................475 unlink....................................................................................................................................475XXXI. Funciones Forms Data Format (Formato de Datos de Formularios)..................................476 fdf_add_template..................................................................................................................478 fdf_close ...............................................................................................................................478 fdf_create..............................................................................................................................478 fdf_get_file ...........................................................................................................................479 xx
    • fdf_get_status .......................................................................................................................479 fdf_get_value ........................................................................................................................479 fdf_next_field_name.............................................................................................................479 fdf_open................................................................................................................................480 fdf_save ................................................................................................................................480 fdf_set_ap .............................................................................................................................480 fdf_set_encoding ..................................................................................................................481 fdf_set_file............................................................................................................................481 fdf_set_flags .........................................................................................................................481 fdf_set_javascript_action......................................................................................................481 fdf_set_opt............................................................................................................................482 fdf_set_status........................................................................................................................482 fdf_set_submit_form_action.................................................................................................482 fdf_set_value ........................................................................................................................482XXXII. FriBiDi functions ..............................................................................................................484 fribidi_log2vis ......................................................................................................................486XXXIII. Funciones FTP.................................................................................................................487 ftp_cdup................................................................................................................................488 ftp_chdir ...............................................................................................................................488 ftp_close ...............................................................................................................................488 ftp_connect ...........................................................................................................................488 ftp_delete ..............................................................................................................................488 ftp_exec ................................................................................................................................489 ftp_fget .................................................................................................................................489 ftp_fput .................................................................................................................................489 ftp_get_option.......................................................................................................................489 ftp_get...................................................................................................................................490 ftp_login ...............................................................................................................................490 ftp_mdtm ..............................................................................................................................491 ftp_mkdir ..............................................................................................................................491 ftp_nlist.................................................................................................................................491 ftp_pasv ................................................................................................................................491 ftp_put...................................................................................................................................492 ftp_pwd.................................................................................................................................492 ftp_quit .................................................................................................................................492 ftp_rawlist.............................................................................................................................492 ftp_rename............................................................................................................................493 ftp_rmdir...............................................................................................................................493 ftp_set_option .......................................................................................................................493 ftp_site ..................................................................................................................................494 ftp_size .................................................................................................................................494 ftp_systype............................................................................................................................494XXXIV. Function Handling functions...........................................................................................496 call_user_func_array ............................................................................................................497 call_user_func.......................................................................................................................497 create_function .....................................................................................................................498 func_get_arg .........................................................................................................................500 func_get_args........................................................................................................................501 xxi
    • func_num_args .....................................................................................................................501 function_exists......................................................................................................................502 get_defined_functions...........................................................................................................502 register_shutdown_function .................................................................................................503 register_tick_function...........................................................................................................503 unregister_tick_function.......................................................................................................504XXXV. GNU Gettext.....................................................................................................................505 bind_textdomain_codeset .....................................................................................................506 bindtextdomain .....................................................................................................................506 dcgettext ...............................................................................................................................506 dcngettext .............................................................................................................................506 dgettext .................................................................................................................................507 dngettext ...............................................................................................................................507 gettext ...................................................................................................................................507 ngettext .................................................................................................................................508 textdomain ............................................................................................................................508XXXVI. GMP functions ................................................................................................................509 gmp_abs................................................................................................................................510 gmp_add ...............................................................................................................................510 gmp_and ...............................................................................................................................510 gmp_clrbit.............................................................................................................................510 gmp_cmp ..............................................................................................................................510 gmp_com ..............................................................................................................................510 gmp_div_q ............................................................................................................................511 gmp_div_qr...........................................................................................................................511 gmp_div_r.............................................................................................................................512 gmp_div ................................................................................................................................512 gmp_divexact........................................................................................................................512 gmp_fact ...............................................................................................................................512 gmp_gcd ...............................................................................................................................513 gmp_gcdext ..........................................................................................................................513 gmp_hamdist ........................................................................................................................513 gmp_init................................................................................................................................513 gmp_intval ............................................................................................................................514 gmp_invert............................................................................................................................514 gmp_jacobi ...........................................................................................................................514 gmp_legendre .......................................................................................................................515 gmp_mod..............................................................................................................................515 gmp_mul...............................................................................................................................515 gmp_neg ...............................................................................................................................515 gmp_or..................................................................................................................................515 gmp_perfect_square .............................................................................................................516 gmp_popcount ......................................................................................................................516 gmp_pow ..............................................................................................................................516 gmp_powm ...........................................................................................................................516 gmp_prob_prime ..................................................................................................................516 gmp_random.........................................................................................................................517 gmp_scan0............................................................................................................................517 xxii
    • gmp_scan1............................................................................................................................517 gmp_setbit ............................................................................................................................517 gmp_sign ..............................................................................................................................517 gmp_sqrt ...............................................................................................................................518 gmp_sqrtrm...........................................................................................................................518 gmp_strval ............................................................................................................................518 gmp_sub ...............................................................................................................................518 gmp_xor................................................................................................................................519XXXVII. Funciones HTTP ............................................................................................................520 header ...................................................................................................................................521 headers_sent .........................................................................................................................521 setcookie ...............................................................................................................................522XXXVIII. Funciones para Hyperwave...........................................................................................524 hw_Array2Objrec .................................................................................................................529 hw_changeobject ..................................................................................................................529 hw_Children .........................................................................................................................529 hw_ChildrenObj ...................................................................................................................529 hw_Close ..............................................................................................................................529 hw_Connect..........................................................................................................................530 hw_connection_info .............................................................................................................530 hw_Cp...................................................................................................................................530 hw_Deleteobject ...................................................................................................................531 hw_DocByAnchor................................................................................................................531 hw_DocByAnchorObj..........................................................................................................531 hw_Document_Attributes.....................................................................................................531 hw_Document_BodyTag ......................................................................................................532 hw_Document_Content........................................................................................................532 hw_Document_SetContent...................................................................................................532 hw_Document_Size..............................................................................................................532 hw_dummy ...........................................................................................................................533 hw_EditText..........................................................................................................................533 hw_Error...............................................................................................................................533 hw_ErrorMsg........................................................................................................................533 hw_Free_Document .............................................................................................................534 hw_GetAnchors....................................................................................................................534 hw_GetAnchorsObj..............................................................................................................534 hw_GetAndLock ..................................................................................................................534 hw_GetChildColl..................................................................................................................534 hw_GetChildCollObj............................................................................................................535 hw_GetChildDocColl ...........................................................................................................535 hw_GetChildDocCollObj .....................................................................................................535 hw_GetObject.......................................................................................................................535 hw_GetObjectByQuery ........................................................................................................536 hw_GetObjectByQueryColl .................................................................................................536 hw_GetObjectByQueryCollObj ...........................................................................................537 hw_GetObjectByQueryObj ..................................................................................................537 hw_GetParents......................................................................................................................537 hw_GetParentsObj................................................................................................................538 xxiii
    • hw_getrellink........................................................................................................................538 hw_GetRemote .....................................................................................................................538 hw_GetRemoteChildren .......................................................................................................539 hw_GetSrcByDestObj ..........................................................................................................539 hw_GetText ..........................................................................................................................539 hw_Username .......................................................................................................................540 hw_Identify...........................................................................................................................540 hw_InCollections..................................................................................................................540 hw_Info.................................................................................................................................541 hw_InsColl ...........................................................................................................................541 hw_InsDoc............................................................................................................................541 hw_insertanchors..................................................................................................................541 hw_InsertDocument .............................................................................................................542 hw_InsertObject ...................................................................................................................542 hw_mapid .............................................................................................................................542 hw_Modifyobject .................................................................................................................543 hw_Mv..................................................................................................................................545 hw_New_Document .............................................................................................................546 hw_Objrec2Array .................................................................................................................546 hw_Output_Document .........................................................................................................546 hw_pConnect........................................................................................................................546 hw_PipeDocument ...............................................................................................................547 hw_Root ...............................................................................................................................547 hw_setlinkroot ......................................................................................................................547 hw_stat..................................................................................................................................548 hw_Unlock ...........................................................................................................................548 hw_Who ...............................................................................................................................548XXXIX. Hyperwave API functions ...............................................................................................549 hw_api_attribute->key..........................................................................................................551 hw_api_attribute->langdepvalue ..........................................................................................551 hw_api_attribute->value .......................................................................................................551 hw_api_attribute->values .....................................................................................................551 hw_api_attribute ...................................................................................................................551 hw_api->checkin ..................................................................................................................552 hw_api->checkout ................................................................................................................552 hw_api->children..................................................................................................................553 hw_api_content->mimetype .................................................................................................553 hw_api_content->read ..........................................................................................................553 hw_api->content ...................................................................................................................553 hw_api->copy .......................................................................................................................554 hw_api->dbstat .....................................................................................................................554 hw_api->dcstat .....................................................................................................................554 hw_api->dstanchors..............................................................................................................554 hw_api->dstofsrcanchors......................................................................................................555 hw_api_error->count ............................................................................................................555 hw_api_error->reason...........................................................................................................555 hw_api->find.........................................................................................................................555 hw_api->ftstat.......................................................................................................................556 xxiv
    • hwapi_hgcsp .........................................................................................................................556 hw_api->hwstat ....................................................................................................................556 hw_api->identify ..................................................................................................................556 hw_api->info ........................................................................................................................557 hw_api->insert......................................................................................................................557 hw_api->insertanchor ...........................................................................................................558 hw_api->insertcollection ......................................................................................................558 hw_api->insertdocument ......................................................................................................558 hw_api->link.........................................................................................................................559 hw_api->lock........................................................................................................................559 hw_api->move ......................................................................................................................559 hw_api_content.....................................................................................................................559 hw_api_object->assign .........................................................................................................560 hw_api_object->attreditable .................................................................................................560 hw_api_object->count ..........................................................................................................560 hw_api_object->insert ..........................................................................................................560 hw_api_object.......................................................................................................................560 hw_api_object->remove .......................................................................................................561 hw_api_object->title.............................................................................................................561 hw_api_object->value ..........................................................................................................561 hw_api->object .....................................................................................................................561 hw_api->objectbyanchor ......................................................................................................563 hw_api->parents ...................................................................................................................563 hw_api_reason->description.................................................................................................563 hw_api_reason->type ...........................................................................................................563 hw_api->remove...................................................................................................................563 hw_api->replace ...................................................................................................................564 hw_api->setcommitedversion...............................................................................................565 hw_api->srcanchors..............................................................................................................565 hw_api->srcsofdst.................................................................................................................565 hw_api->unlock....................................................................................................................565 hw_api->user ........................................................................................................................566 hw_api->userlist ...................................................................................................................566XL. Funciones para ICAP - Internet Calendar Application Protocol ............................................567 icap_close .............................................................................................................................568 icap_create_calendar ............................................................................................................568 icap_delete_calendar ............................................................................................................568 icap_delete_event .................................................................................................................568 icap_fetch_event ...................................................................................................................569 icap_list_alarms....................................................................................................................569 icap_list_events ....................................................................................................................570 icap_open..............................................................................................................................570 icap_rename_calendar ..........................................................................................................571 icap_reopen...........................................................................................................................571 icap_snooze ..........................................................................................................................571 icap_store_event ...................................................................................................................571XLI. iconv functions ......................................................................................................................573 iconv_get_encoding..............................................................................................................574 xxv
    • iconv_set_encoding ..............................................................................................................574 iconv .....................................................................................................................................574 ob_iconv_handler .................................................................................................................575XLII. Funciones para imágenes .....................................................................................................576 exif_imagetype .....................................................................................................................577 exif_read_data ......................................................................................................................577 exif_thumbnail......................................................................................................................580 GetImageSize .......................................................................................................................580 image_type_to_mime_type ..................................................................................................581 image2wbmp ........................................................................................................................582 imagealphablending..............................................................................................................582 ImageArc ..............................................................................................................................583 ImageChar ............................................................................................................................583 ImageCharUp .......................................................................................................................583 ImageColorAllocate .............................................................................................................583 ImageColorAt .......................................................................................................................584 ImageColorClosest ...............................................................................................................584 imagecolorclosestalpha.........................................................................................................584 imagecolorclosesthwb ..........................................................................................................585 imagecolordeallocate............................................................................................................585 ImageColorExact..................................................................................................................585 imagecolorexactalpha ...........................................................................................................586 ImageColorResolve ..............................................................................................................586 imagecolorresolvealpha ........................................................................................................586 ImageColorSet......................................................................................................................586 ImageColorsForIndex...........................................................................................................587 ImageColorsTotal .................................................................................................................587 ImageColorTransparent ........................................................................................................587 imagecopy.............................................................................................................................587 imagecopymerge...................................................................................................................588 imagecopymergegray............................................................................................................588 imagecopyresampled ............................................................................................................589 ImageCopyResized...............................................................................................................589 ImageCreate..........................................................................................................................589 imagecreatefromgd2 .............................................................................................................589 imagecreatefromgd2part.......................................................................................................590 imagecreatefromgd ...............................................................................................................590 ImageCreateFromGif............................................................................................................590 imagecreatefromjpeg ............................................................................................................591 imagecreatefrompng .............................................................................................................592 imagecreatefromstring..........................................................................................................593 imagecreatefromwbmp .........................................................................................................593 imagecreatefromxbm............................................................................................................594 imagecreatefromxpm............................................................................................................594 imagecreatetruecolor ............................................................................................................594 ImageDashedLine.................................................................................................................594 ImageDestroy .......................................................................................................................595 imageellipse..........................................................................................................................595 xxvi
    • ImageFill...............................................................................................................................595imagefilledarc .......................................................................................................................595imagefilledellipse..................................................................................................................596ImageFilledPolygon .............................................................................................................596ImageFilledRectangle...........................................................................................................596ImageFillToBorder ...............................................................................................................597ImageFontHeight ..................................................................................................................597ImageFontWidth ...................................................................................................................597imageftbbox..........................................................................................................................597imagefttext ............................................................................................................................598imagegammacorrect..............................................................................................................598imagegd2 ..............................................................................................................................598imagegd ................................................................................................................................599ImageGif...............................................................................................................................599ImageInterlace ......................................................................................................................599imagejpeg .............................................................................................................................600ImageLine.............................................................................................................................600ImageLoadFont.....................................................................................................................600imagepalettecopy ..................................................................................................................601imagepng ..............................................................................................................................601ImagePolygon.......................................................................................................................602ImagePSBBox ......................................................................................................................602ImagePSCopyFont................................................................................................................603ImagePSEncodeFont ............................................................................................................603imagepsextendfont................................................................................................................604ImagePSFreeFont .................................................................................................................604ImagePSLoadFont ................................................................................................................604imagepsslantfont...................................................................................................................604ImagePSText.........................................................................................................................605ImageRectangle ....................................................................................................................605imagesetbrush .......................................................................................................................606ImageSetPixel.......................................................................................................................606imagesetstyle ........................................................................................................................606imagesetthickness .................................................................................................................607imagesettile...........................................................................................................................608ImageString ..........................................................................................................................608ImageStringUp .....................................................................................................................608ImageSX ...............................................................................................................................609ImageSY ...............................................................................................................................609imagetruecolortopalette ........................................................................................................609ImageTTFBBox....................................................................................................................609ImageTTFText ......................................................................................................................610imagetypes............................................................................................................................611imagewbmp ..........................................................................................................................612iptcembed .............................................................................................................................612iptcparse................................................................................................................................613jpeg2wbmp ...........................................................................................................................613png2wbmp ............................................................................................................................613 xxvii
    • read_exif_data ......................................................................................................................614XLIII. Funciones IMAP .................................................................................................................615 imap_8bit..............................................................................................................................616 imap_alerts ...........................................................................................................................616 imap_append.........................................................................................................................616 imap_base64 .........................................................................................................................616 imap_binary..........................................................................................................................616 imap_body ............................................................................................................................617 imap_bodystruct ...................................................................................................................617 imap_check...........................................................................................................................617 imap_clearflag_full...............................................................................................................618 imap_close............................................................................................................................618 imap_createmailbox .............................................................................................................618 imap_delete...........................................................................................................................619 imap_deletemailbox .............................................................................................................619 imap_errors...........................................................................................................................619 imap_expunge.......................................................................................................................619 imap_fetch_overview ...........................................................................................................620 imap_fetchbody ....................................................................................................................621 imap_fetchheader .................................................................................................................621 imap_fetchstructure ..............................................................................................................622 imap_get_quota ....................................................................................................................623 imap_getmailboxes...............................................................................................................624 imap_getsubscribed ..............................................................................................................625 imap_header .........................................................................................................................625 imap_headerinfo ...................................................................................................................627 imap_headers........................................................................................................................629 imap_last_error.....................................................................................................................629 imap_listmailbox ..................................................................................................................629 imap_listsubscribed ..............................................................................................................630 imap_mail_compose.............................................................................................................630 imap_mail_copy ...................................................................................................................631 imap_mail_move ..................................................................................................................631 imap_mail .............................................................................................................................631 imap_mailboxmsginfo..........................................................................................................632 imap_mime_header_decode .................................................................................................632 imap_msgno .........................................................................................................................633 imap_num_msg ....................................................................................................................633 imap_num_recent .................................................................................................................633 imap_open ............................................................................................................................633 imap_ping .............................................................................................................................634 imap_popen ..........................................................................................................................634 imap_qprint...........................................................................................................................635 imap_renamemailbox ...........................................................................................................635 imap_reopen .........................................................................................................................635 imap_rfc822_parse_adrlist ...................................................................................................636 imap_rfc822_parse_headers .................................................................................................636 imap_rfc822_write_address .................................................................................................636 xxviii
    • imap_scanmailbox................................................................................................................636 imap_search..........................................................................................................................637 imap_set_quota.....................................................................................................................638 imap_setacl ...........................................................................................................................638 imap_setflag_full ..................................................................................................................639 imap_sort ..............................................................................................................................639 imap_status ...........................................................................................................................640 imap_subscribe .....................................................................................................................640 imap_thread ..........................................................................................................................641 imap_uid ...............................................................................................................................641 imap_undelete.......................................................................................................................641 imap_unsubscribe .................................................................................................................641 imap_utf7_decode ................................................................................................................642 imap_utf7_encode ................................................................................................................642 imap_utf8..............................................................................................................................642XLIV. Funciones para Informix.....................................................................................................643 ifx_affected_rows .................................................................................................................645 ifx_blobinfile_mode .............................................................................................................645 ifx_byteasvarchar..................................................................................................................645 ifx_close ...............................................................................................................................646 ifx_connect ...........................................................................................................................646 ifx_copy_blob.......................................................................................................................647 ifx_create_blob .....................................................................................................................647 ifx_create_char .....................................................................................................................647 ifx_do....................................................................................................................................647 ifx_error................................................................................................................................648 ifx_errormsg .........................................................................................................................648 ifx_fetch_row........................................................................................................................649 ifx_fieldproperties.................................................................................................................650 ifx_fieldtypes ........................................................................................................................650 ifx_free_blob ........................................................................................................................651 ifx_free_char.........................................................................................................................651 ifx_free_result.......................................................................................................................651 ifx_get_blob..........................................................................................................................652 ifx_get_char..........................................................................................................................652 ifx_getsqlca...........................................................................................................................652 ifx_htmltbl_result .................................................................................................................653 ifx_nullformat.......................................................................................................................653 ifx_num_fields......................................................................................................................654 ifx_num_rows.......................................................................................................................654 ifx_pconnect .........................................................................................................................654 ifx_prepare............................................................................................................................654 ifx_query...............................................................................................................................655 ifx_textasvarchar ..................................................................................................................657 ifx_update_blob....................................................................................................................657 ifx_update_char ....................................................................................................................657 ifxus_close_slob ...................................................................................................................657 ifxus_create_slob..................................................................................................................657 xxix
    • ifx_free_slob.........................................................................................................................658 ifxus_open_slob....................................................................................................................658 ifxus_read_slob.....................................................................................................................658 ifxus_seek_slob ....................................................................................................................658 ifxus_tell_slob ......................................................................................................................659 ifxus_write_slob ...................................................................................................................659XLV. Funciones InterBase .............................................................................................................660 ibase_blob_add .....................................................................................................................661 ibase_blob_cancel.................................................................................................................661 ibase_blob_close...................................................................................................................661 ibase_blob_create .................................................................................................................661 ibase_blob_echo ...................................................................................................................662 ibase_blob_get......................................................................................................................662 ibase_blob_import ................................................................................................................662 ibase_blob_info ....................................................................................................................663 ibase_blob_open ...................................................................................................................663 ibase_close............................................................................................................................663 ibase_commit........................................................................................................................664 ibase_connect .......................................................................................................................664 ibase_errmsg.........................................................................................................................664 ibase_execute........................................................................................................................664 ibase_fetch_object ................................................................................................................664 ibase_fetch_row....................................................................................................................665 ibase_field_info ....................................................................................................................665 ibase_free_query...................................................................................................................666 ibase_free_result...................................................................................................................666 ibase_num_fields ..................................................................................................................666 ibase_pconnect .....................................................................................................................666 ibase_prepare........................................................................................................................667 ibase_query...........................................................................................................................667 ibase_rollback.......................................................................................................................667 ibase_timefmt .......................................................................................................................667 ibase_trans ............................................................................................................................667XLVI. Ingres II functions ...............................................................................................................668 ingres_autocommit ...............................................................................................................669 ingres_close ..........................................................................................................................669 ingres_commit ......................................................................................................................669 ingres_connect......................................................................................................................669 ingres_fetch_array ................................................................................................................670 ingres_fetch_object...............................................................................................................671 ingres_fetch_row ..................................................................................................................672 ingres_field_length ...............................................................................................................673 ingres_field_name.................................................................................................................673 ingres_field_nullable ............................................................................................................673 ingres_field_precision...........................................................................................................673 ingres_field_scale .................................................................................................................674 ingres_field_type ..................................................................................................................674 ingres_num_fields.................................................................................................................674 xxx
    • ingres_num_rows..................................................................................................................675 ingres_pconnect....................................................................................................................675 ingres_query .........................................................................................................................675 ingres_rollback .....................................................................................................................676XLVII. IRC Gateway Functions.....................................................................................................678 ircg_channel_mode...............................................................................................................679 ircg_disconnect.....................................................................................................................679 ircg_fetch_error_msg ...........................................................................................................679 ircg_get_username................................................................................................................679 ircg_html_encode .................................................................................................................680 ircg_ignore_add....................................................................................................................680 ircg_ignore_del.....................................................................................................................680 ircg_is_conn_alive................................................................................................................680 ircg_join................................................................................................................................681 ircg_kick ...............................................................................................................................681 ircg_lookup_format_messages .............................................................................................681 ircg_msg ...............................................................................................................................681 ircg_nick ...............................................................................................................................682 ircg_nickname_escape..........................................................................................................682 ircg_nickname_unescape......................................................................................................682 ircg_notice ............................................................................................................................682 ircg_part................................................................................................................................682 ircg_pconnect .......................................................................................................................683 ircg_register_format_messages ............................................................................................683 ircg_set_current ....................................................................................................................685 ircg_set_file ..........................................................................................................................685 ircg_set_on_die.....................................................................................................................685 ircg_topic..............................................................................................................................685 ircg_whois ............................................................................................................................686XLVIII. Java ...................................................................................................................................687 java_last_exception_clear.....................................................................................................690 java_last_exception_get........................................................................................................690XLIX. Funciones LDAP ................................................................................................................691 ldap_8859_to_t61 .................................................................................................................694 ldap_add ...............................................................................................................................694 ldap_bind ..............................................................................................................................695 ldap_close .............................................................................................................................695 ldap_compare .......................................................................................................................695 ldap_connect.........................................................................................................................697 ldap_count_entries................................................................................................................697 ldap_delete............................................................................................................................697 ldap_dn2ufn..........................................................................................................................697 ldap_err2str...........................................................................................................................698 ldap_errno.............................................................................................................................698 ldap_error .............................................................................................................................699 ldap_explode_dn...................................................................................................................699 ldap_first_attribute................................................................................................................699 ldap_first_entry.....................................................................................................................700 xxxi
    • ldap_first_reference ..............................................................................................................700 ldap_free_result ....................................................................................................................700 ldap_get_attributes................................................................................................................701 ldap_get_dn ..........................................................................................................................702 ldap_get_entries....................................................................................................................702 ldap_get_option ....................................................................................................................703 ldap_get_values_len .............................................................................................................703 ldap_get_values ....................................................................................................................704 ldap_list ................................................................................................................................705 ldap_mod_add ......................................................................................................................705 ldap_mod_del .......................................................................................................................706 ldap_mod_replace.................................................................................................................706 ldap_modify..........................................................................................................................706 ldap_next_attribute ...............................................................................................................707 ldap_next_entry ....................................................................................................................707 ldap_next_reference..............................................................................................................707 ldap_parse_reference............................................................................................................707 ldap_parse_result..................................................................................................................708 ldap_read ..............................................................................................................................708 ldap_rename .........................................................................................................................708 ldap_search ...........................................................................................................................709 ldap_set_option.....................................................................................................................710 ldap_set_rebind_proc ...........................................................................................................711 ldap_sort ...............................................................................................................................711 ldap_start_tls.........................................................................................................................712 ldap_t61_to_8859 .................................................................................................................712 ldap_unbind ..........................................................................................................................712L. Funciones de Correo ..................................................................................................................713 ezmlm_hash..........................................................................................................................714 mail .......................................................................................................................................714LI. mailparse functions ..................................................................................................................716 mailparse_determine_best_xfer_encoding ...........................................................................717 mailparse_msg_create ..........................................................................................................717 mailparse_msg_extract_part_file..........................................................................................717 mailparse_msg_extract_part.................................................................................................718 mailparse_msg_free..............................................................................................................718 mailparse_msg_get_part_data ..............................................................................................719 mailparse_msg_get_part.......................................................................................................719 mailparse_msg_get_structure ...............................................................................................720 mailparse_msg_parse_file ....................................................................................................720 mailparse_msg_parse ...........................................................................................................721 mailparse_rfc822_parse_addresses ......................................................................................721 mailparse_stream_encode.....................................................................................................722 mailparse_uudecode_all .......................................................................................................722LII. Funciones matemáticas ...........................................................................................................724 abs.........................................................................................................................................725 acos .......................................................................................................................................725 acosh .....................................................................................................................................725 xxxii
    • asin........................................................................................................................................725 asinh......................................................................................................................................725 atan2 .....................................................................................................................................726 atan .......................................................................................................................................726 atanh .....................................................................................................................................726 base_convert .........................................................................................................................727 BinDec..................................................................................................................................727 ceil ........................................................................................................................................727 cos.........................................................................................................................................728 cosh.......................................................................................................................................728 DecBin..................................................................................................................................728 DecHex .................................................................................................................................728 DecOct..................................................................................................................................728 deg2rad .................................................................................................................................729 exp ........................................................................................................................................729 expm1 ...................................................................................................................................729 floor.......................................................................................................................................730 getrandmax ...........................................................................................................................730 HexDec .................................................................................................................................730 hypot .....................................................................................................................................730 is_finite .................................................................................................................................731 is_infinite ..............................................................................................................................731 is_nan....................................................................................................................................731 lcg_value...............................................................................................................................731 log10 .....................................................................................................................................732 log1p .....................................................................................................................................732 log .........................................................................................................................................732 max .......................................................................................................................................733 min........................................................................................................................................733 mt_getrandmax .....................................................................................................................733 mt_rand.................................................................................................................................733 mt_srand ...............................................................................................................................734 number_format .....................................................................................................................734 OctDec..................................................................................................................................735 pi ...........................................................................................................................................735 pow .......................................................................................................................................735 rad2deg .................................................................................................................................735 rand .......................................................................................................................................736 round.....................................................................................................................................736 sin .........................................................................................................................................736 sinh .......................................................................................................................................736 sqrt ........................................................................................................................................737 srand .....................................................................................................................................737 tan .........................................................................................................................................737 tanh .......................................................................................................................................737LIII. Multi-Byte String Functions ..................................................................................................739 mb_convert_encoding...........................................................................................................747 mb_convert_kana..................................................................................................................747 xxxiii
    • mb_convert_variables...........................................................................................................748 mb_decode_mimeheader......................................................................................................749 mb_decode_numericentity ...................................................................................................749 mb_detect_encoding.............................................................................................................750 mb_detect_order ...................................................................................................................750 mb_encode_mimeheader......................................................................................................752 mb_encode_numericentity ...................................................................................................752 mb_ereg_match ....................................................................................................................753 mb_ereg_replace...................................................................................................................754 mb_ereg_search_getpos........................................................................................................755 mb_ereg_search_getregs ......................................................................................................755 mb_ereg_search_init.............................................................................................................756 mb_ereg_search_pos ............................................................................................................756 mb_ereg_search_regs ...........................................................................................................757 mb_ereg_search_setpos ........................................................................................................758 mb_ereg_search ....................................................................................................................758 mb_ereg ................................................................................................................................759 mb_eregi_replace..................................................................................................................759 mb_eregi ...............................................................................................................................760 mb_get_info..........................................................................................................................760 mb_http_input.......................................................................................................................761 mb_http_output.....................................................................................................................761 mb_internal_encoding ..........................................................................................................761 mb_language.........................................................................................................................762 mb_output_handler...............................................................................................................762 mb_parse_str.........................................................................................................................763 mb_preferred_mime_name...................................................................................................763 mb_regex_encoding..............................................................................................................764 mb_send_mail.......................................................................................................................764 mb_split ................................................................................................................................765 mb_strcut ..............................................................................................................................766 mb_strimwidth......................................................................................................................766 mb_strlen ..............................................................................................................................766 mb_strpos .............................................................................................................................767 mb_strrpos ............................................................................................................................767 mb_strwidth..........................................................................................................................767 mb_substitute_character .......................................................................................................768 mb_substr .............................................................................................................................769LIV. MCAL functions....................................................................................................................770 mcal_append_event ..............................................................................................................771 mcal_close ............................................................................................................................771 mcal_create_calendar ...........................................................................................................771 mcal_date_compare..............................................................................................................771 mcal_date_valid....................................................................................................................771 mcal_day_of_week...............................................................................................................771 mcal_day_of_year ................................................................................................................772 mcal_days_in_month............................................................................................................772 mcal_delete_calendar ...........................................................................................................772 xxxiv
    • mcal_delete_event ................................................................................................................772 mcal_event_add_attribute.....................................................................................................772 mcal_event_init ....................................................................................................................773 mcal_event_set_alarm ..........................................................................................................773 mcal_event_set_category......................................................................................................773 mcal_event_set_class............................................................................................................773 mcal_event_set_description..................................................................................................774 mcal_event_set_end..............................................................................................................774 mcal_event_set_recur_daily .................................................................................................774 mcal_event_set_recur_monthly_mday .................................................................................774 mcal_event_set_recur_monthly_wday .................................................................................775 mcal_event_set_recur_none .................................................................................................775 mcal_event_set_recur_weekly..............................................................................................775 mcal_event_set_recur_yearly ...............................................................................................775 mcal_event_set_start ............................................................................................................775 mcal_event_set_title .............................................................................................................776 mcal_expunge.......................................................................................................................776 mcal_fetch_current_stream_event........................................................................................776 mcal_fetch_event..................................................................................................................777 mcal_is_leap_year ................................................................................................................778 mcal_list_alarms...................................................................................................................778 mcal_list_events ...................................................................................................................778 mcal_next_recurrence...........................................................................................................779 mcal_open.............................................................................................................................779 mcal_popen...........................................................................................................................779 mcal_rename_calendar .........................................................................................................779 mcal_reopen .........................................................................................................................780 mcal_snooze .........................................................................................................................780 mcal_store_event ..................................................................................................................780 mcal_time_valid ...................................................................................................................780 mcal_week_of_year..............................................................................................................781LV. Funciones Criptográficas.........................................................................................................782 mcrypt_cbc ...........................................................................................................................784 mcrypt_cfb............................................................................................................................784 mcrypt_create_iv ..................................................................................................................784 mcrypt_decrypt.....................................................................................................................785 mcrypt_ecb ...........................................................................................................................785 mcrypt_enc_get_algorithms_name.......................................................................................786 mcrypt_enc_get_block_size .................................................................................................786 mcrypt_enc_get_iv_size .......................................................................................................786 mcrypt_enc_get_key_size ....................................................................................................787 mcrypt_enc_get_modes_name .............................................................................................787 mcrypt_enc_get_supported_key_sizes .................................................................................787 mcrypt_enc_is_block_algorithm_mode ...............................................................................788 mcrypt_enc_is_block_algorithm ..........................................................................................788 mcrypt_enc_is_block_mode.................................................................................................789 mcrypt_enc_self_test............................................................................................................789 mcrypt_encrypt.....................................................................................................................789 xxxv
    • mcrypt_generic_deinit..........................................................................................................790 mcrypt_generic_end .............................................................................................................790 mcrypt_generic_init..............................................................................................................791 mcrypt_generic .....................................................................................................................791 mcrypt_get_block_size.........................................................................................................791 mcrypt_get_cipher_name .....................................................................................................792 mcrypt_get_iv_size...............................................................................................................792 mcrypt_get_key_size ............................................................................................................793 mcrypt_list_algorithms.........................................................................................................793 mcrypt_list_modes ...............................................................................................................794 mcrypt_module_close...........................................................................................................794 mcrypt_module_get_algo_block_size..................................................................................795 mcrypt_module_get_algo_key_size .....................................................................................795 mcrypt_module_get_supported_key_sizes...........................................................................795 mcrypt_module_is_block_algorithm_mode.........................................................................795 mcrypt_module_is_block_algorithm....................................................................................795 mcrypt_module_is_block_mode ..........................................................................................796 mcrypt_module_open ...........................................................................................................796 mcrypt_module_self_test .....................................................................................................798 mcrypt_ofb ...........................................................................................................................798 mdecrypt_generic .................................................................................................................798LVI. Funciones Hash......................................................................................................................800 mhash_count.........................................................................................................................802 mhash_get_block_size..........................................................................................................802 mhash_get_hash_name.........................................................................................................802 mhash_keygen_s2k...............................................................................................................803 mhash....................................................................................................................................803LVII. Mimetype Functions.............................................................................................................804 mime_content_type ..............................................................................................................805LVIII. Funciones de Microsoft SQL Server...................................................................................806 mssql_bind............................................................................................................................807 mssql_close...........................................................................................................................807 mssql_connect ......................................................................................................................807 mssql_data_seek ...................................................................................................................808 mssql_execute.......................................................................................................................808 mssql_fetch_array.................................................................................................................808 mssql_fetch_assoc ................................................................................................................809 mssql_fetch_batch ................................................................................................................809 mssql_fetch_field..................................................................................................................809 mssql_fetch_object ...............................................................................................................810 mssql_fetch_row...................................................................................................................810 mssql_field_length................................................................................................................810 mssql_field_name .................................................................................................................811 mssql_field_seek...................................................................................................................811 mssql_field_type...................................................................................................................811 mssql_free_result..................................................................................................................811 mssql_get_last_message.......................................................................................................811 mssql_guid_string.................................................................................................................812 xxxvi
    • mssql_init .............................................................................................................................812 mssql_min_error_severity ....................................................................................................812 mssql_min_message_severity ..............................................................................................812 mssql_next_result .................................................................................................................813 mssql_num_fields .................................................................................................................813 mssql_num_rows ..................................................................................................................813 mssql_pconnect ....................................................................................................................814 mssql_query..........................................................................................................................814 mssql_result..........................................................................................................................814 mssql_rows_affected ............................................................................................................815 mssql_select_db....................................................................................................................815LIX. Ming functions for Flash .......................................................................................................817 ming_setcubicthreshold........................................................................................................819 ming_setscale .......................................................................................................................819 ming_useswfversion .............................................................................................................819 SWFAction ...........................................................................................................................819 SWFBitmap->getHeight.......................................................................................................830 SWFBitmap->getWidth........................................................................................................830 SWFBitmap ..........................................................................................................................831 swfbutton_keypress ..............................................................................................................833 SWFbutton->addAction .......................................................................................................833 SWFbutton->addShape.........................................................................................................833 SWFbutton->setAction.........................................................................................................834 SWFbutton->setdown ...........................................................................................................834 SWFbutton->setHit...............................................................................................................835 SWFbutton->setOver............................................................................................................835 SWFbutton->setUp...............................................................................................................835 SWFbutton............................................................................................................................836 SWFDisplayItem->addColor................................................................................................839 SWFDisplayItem->move......................................................................................................839 SWFDisplayItem->moveTo..................................................................................................840 SWFDisplayItem->multColor ..............................................................................................840 SWFDisplayItem->remove...................................................................................................841 SWFDisplayItem->Rotate ....................................................................................................842 SWFDisplayItem->rotateTo .................................................................................................842 SWFDisplayItem->scale.......................................................................................................844 SWFDisplayItem->scaleTo ..................................................................................................845 SWFDisplayItem->setDepth ................................................................................................845 SWFDisplayItem->setName.................................................................................................845 SWFDisplayItem->setRatio .................................................................................................846 SWFDisplayItem->skewX....................................................................................................848 SWFDisplayItem->skewXTo ...............................................................................................848 SWFDisplayItem->skewY....................................................................................................848 SWFDisplayItem->skewYTo ...............................................................................................849 SWFDisplayItem ..................................................................................................................849 SWFFill->moveTo................................................................................................................850 SWFFill->rotateTo ...............................................................................................................850 SWFFill->scaleTo.................................................................................................................851 xxxvii
    • SWFFill->skewXTo..............................................................................................................851SWFFill->skewYTo..............................................................................................................851SWFFill ................................................................................................................................852swffont->getwidth ................................................................................................................852SWFFont...............................................................................................................................852SWFGradient->addEntry......................................................................................................853SWFGradient........................................................................................................................854SWFMorph->getshape1 .......................................................................................................855SWFMorph->getshape2 .......................................................................................................855SWFMorph ...........................................................................................................................856SWFMovie->add ..................................................................................................................857SWFMovie->nextframe........................................................................................................858SWFMovie->output..............................................................................................................858SWFMovie->remove ............................................................................................................859SWFMovie->save .................................................................................................................859SWFMovie->setbackground.................................................................................................859SWFMovie->setdimension...................................................................................................860SWFMovie->setframes.........................................................................................................860SWFMovie->setrate .............................................................................................................860SWFMovie->streammp3 ......................................................................................................861SWFMovie ...........................................................................................................................862SWFShape->addFill .............................................................................................................862SWFShape->drawCurve.......................................................................................................864SWFShape->drawCurveTo...................................................................................................865SWFShape->drawLine .........................................................................................................865SWFShape->drawLineTo .....................................................................................................866SWFShape->movePen..........................................................................................................866SWFShape->movePenTo......................................................................................................867SWFShape->setLeftFill........................................................................................................867SWFShape->setLine.............................................................................................................868SWFShape->setRightFill......................................................................................................869SWFShape ............................................................................................................................870SWFSprite->add ...................................................................................................................871SWFSprite->nextframe.........................................................................................................871SWFSprite->remove.............................................................................................................872SWFSprite->setframes .........................................................................................................872SWFSprite ............................................................................................................................872SWFText->addString............................................................................................................874SWFText->getWidth.............................................................................................................874SWFText->moveTo ..............................................................................................................874SWFText->setColor..............................................................................................................875SWFText->setFont................................................................................................................875SWFText->setHeight ............................................................................................................876SWFText->setSpacing ..........................................................................................................876SWFText...............................................................................................................................876SWFTextField->addstring ....................................................................................................877SWFTextField->align ...........................................................................................................878SWFTextField->setbounds ...................................................................................................878 xxxviii
    • SWFTextField->setcolor ......................................................................................................878 SWFTextField->setFont .......................................................................................................879 SWFTextField->setHeight....................................................................................................879 SWFTextField->setindentation.............................................................................................880 SWFTextField->setLeftMargin ............................................................................................880 SWFTextField->setLineSpacing ..........................................................................................880 SWFTextField->setMargins .................................................................................................881 SWFTextField->setname ......................................................................................................881 SWFTextField->setrightMargin ...........................................................................................881 SWFTextField.......................................................................................................................882LX. Miscelánea de funciones.........................................................................................................884 connection_aborted...............................................................................................................885 connection_status .................................................................................................................885 connection_timeout ..............................................................................................................885 constant.................................................................................................................................885 define ....................................................................................................................................886 defined ..................................................................................................................................886 die .........................................................................................................................................887 eval........................................................................................................................................887 exit ........................................................................................................................................888 get_browser ..........................................................................................................................888 highlight_file.........................................................................................................................890 highlight_string.....................................................................................................................891 ignore_user_abort .................................................................................................................892 leak .......................................................................................................................................892 pack.......................................................................................................................................892 show_source .........................................................................................................................893 sleep......................................................................................................................................894 uniqid....................................................................................................................................894 unpack...................................................................................................................................895 usleep....................................................................................................................................895LXI. mnoGoSearch Functions .......................................................................................................896 udm_add_search_limit .........................................................................................................897 udm_alloc_agent...................................................................................................................897 udm_api_version ..................................................................................................................898 udm_cat_list .........................................................................................................................899 udm_cat_path .......................................................................................................................900 udm_check_charset ..............................................................................................................901 udm_check_stored................................................................................................................901 udm_clear_search_limits......................................................................................................901 udm_close_stored .................................................................................................................901 udm_crc32 ............................................................................................................................902 udm_errno.............................................................................................................................902 udm_error .............................................................................................................................902 udm_find...............................................................................................................................903 udm_free_agent ....................................................................................................................903 udm_free_ispell_data ...........................................................................................................903 udm_free_res ........................................................................................................................904 xxxix
    • udm_get_doc_count .............................................................................................................904 udm_get_res_field ................................................................................................................904 udm_get_res_param .............................................................................................................905 udm_load_ispell_data...........................................................................................................905 udm_open_stored .................................................................................................................908 udm_set_agent_param..........................................................................................................908LXII. funciones mSQL ..................................................................................................................912 msql_affected_rows..............................................................................................................913 msql_close ............................................................................................................................913 msql_connect........................................................................................................................913 msql_create_db.....................................................................................................................913 msql_createdb.......................................................................................................................914 msql_data_seek.....................................................................................................................914 msql_dbname........................................................................................................................914 msql_drop_db .......................................................................................................................914 msql_dropdb .........................................................................................................................915 msql_error.............................................................................................................................915 msql_fetch_array ..................................................................................................................915 msql_fetch_field ...................................................................................................................916 msql_fetch_object.................................................................................................................916 msql_fetch_row ....................................................................................................................917 msql_field_seek ....................................................................................................................917 msql_fieldflags......................................................................................................................917 msql_fieldlen ........................................................................................................................917 msql_fieldname.....................................................................................................................918 msql_fieldtable .....................................................................................................................918 msql_fieldtype ......................................................................................................................918 msql_free_result ...................................................................................................................918 msql_freeresult .....................................................................................................................918 msql_list_dbs........................................................................................................................919 msql_list_fields.....................................................................................................................919 msql_list_tables ....................................................................................................................919 msql_listdbs..........................................................................................................................919 msql_listfields.......................................................................................................................920 msql_listtables ......................................................................................................................920 msql_num_fields...................................................................................................................920 msql_num_rows....................................................................................................................920 msql_numfields.....................................................................................................................920 msql_numrows......................................................................................................................921 msql_pconnect......................................................................................................................921 msql_query ...........................................................................................................................921 msql_regcase ........................................................................................................................922 msql_result ...........................................................................................................................922 msql_select_db .....................................................................................................................922 msql_selectdb .......................................................................................................................923 msql_tablename....................................................................................................................923 msql ......................................................................................................................................923LXIII. Funciones MySQL..............................................................................................................925 xl
    • mysql_affected_rows............................................................................................................926mysql_change_user ..............................................................................................................926mysql_character_set_name...................................................................................................926mysql_close ..........................................................................................................................927mysql_connect......................................................................................................................927mysql_create_db...................................................................................................................928mysql_data_seek...................................................................................................................929mysql_db_name....................................................................................................................930mysql_db_query ...................................................................................................................930mysql_drop_db .....................................................................................................................931mysql_errno..........................................................................................................................931mysql_error...........................................................................................................................931mysql_escape_string.............................................................................................................932mysql_fetch_array ................................................................................................................933mysql_fetch_assoc................................................................................................................934mysql_fetch_field .................................................................................................................934mysql_fetch_lengths.............................................................................................................935mysql_fetch_object...............................................................................................................935mysql_fetch_row ..................................................................................................................936mysql_field_flags..................................................................................................................936mysql_field_len ....................................................................................................................937mysql_field_name.................................................................................................................937mysql_field_seek ..................................................................................................................937mysql_field_table .................................................................................................................937mysql_field_type ..................................................................................................................938mysql_free_result .................................................................................................................938mysql_get_client_info ..........................................................................................................939mysql_get_host_info ............................................................................................................939mysql_get_proto_info...........................................................................................................940mysql_get_server_info .........................................................................................................940mysql_info............................................................................................................................941mysql_insert_id ....................................................................................................................942mysql_list_dbs......................................................................................................................942mysql_list_fields...................................................................................................................942mysql_list_processes ............................................................................................................942mysql_list_tables ..................................................................................................................943mysql_num_fields.................................................................................................................943mysql_num_rows..................................................................................................................944mysql_pconnect....................................................................................................................944mysql_ping ...........................................................................................................................945mysql_query .........................................................................................................................945mysql_real_escape_string.....................................................................................................946mysql_result .........................................................................................................................947mysql_select_db ...................................................................................................................947mysql_stat.............................................................................................................................947mysql_tablename..................................................................................................................948mysql_thread_id ...................................................................................................................949mysql_unbuffered_query......................................................................................................949 xli
    • LXIV. Mohawk Software session handler functions .....................................................................951 msession_connect .................................................................................................................952 msession_count.....................................................................................................................952 msession_create....................................................................................................................952 msession_destroy..................................................................................................................952 msession_disconnect ............................................................................................................953 msession_find .......................................................................................................................953 msession_get_array ..............................................................................................................953 msession_get.........................................................................................................................953 msession_getdata..................................................................................................................954 msession_inc.........................................................................................................................954 msession_list.........................................................................................................................954 msession_listvar....................................................................................................................955 msession_lock.......................................................................................................................955 msession_plugin ...................................................................................................................955 msession_randstr ..................................................................................................................955 msession_set_array...............................................................................................................956 msession_set .........................................................................................................................956 msession_setdata ..................................................................................................................956 msession_timeout .................................................................................................................957 msession_uniq ......................................................................................................................957 msession_unlock...................................................................................................................957LXV. muscat functions ..................................................................................................................958 muscat_close.........................................................................................................................959 muscat_get............................................................................................................................959 muscat_give ..........................................................................................................................960 muscat_setup_net .................................................................................................................960 muscat_setup ........................................................................................................................960LXVI. Funciones de Red ...............................................................................................................962 checkdnsrr.............................................................................................................................963 closelog.................................................................................................................................963 debugger_off.........................................................................................................................963 debugger_on .........................................................................................................................963 define_syslog_variables........................................................................................................963 fsockopen..............................................................................................................................964 gethostbyaddr .......................................................................................................................964 gethostbyname......................................................................................................................965 gethostbynamel.....................................................................................................................965 getmxrr .................................................................................................................................965 getprotobyname ....................................................................................................................966 getprotobynumber.................................................................................................................966 getservbyname......................................................................................................................966 getservbyport ........................................................................................................................966 ip2long..................................................................................................................................966 long2ip..................................................................................................................................967 openlog .................................................................................................................................967 pfsockopen............................................................................................................................968 socket_get_status ..................................................................................................................968 xlii
    • socket_set_blocking .............................................................................................................968 socket_set_timeout ...............................................................................................................969 syslog....................................................................................................................................969LXVII. Ncurses terminal screen control functions ........................................................................971 ncurses_addch.......................................................................................................................976 ncurses_addchnstr.................................................................................................................976 ncurses_addchstr...................................................................................................................976 ncurses_addnstr ....................................................................................................................977 ncurses_addstr ......................................................................................................................977 ncurses_assume_default_colors ...........................................................................................977 ncurses_attroff ......................................................................................................................978 ncurses_attron.......................................................................................................................978 ncurses_attrset ......................................................................................................................978 ncurses_baudrate ..................................................................................................................979 ncurses_beep.........................................................................................................................979 ncurses_bkgd ........................................................................................................................979 ncurses_bkgdset....................................................................................................................980 ncurses_border......................................................................................................................980 ncurses_can_change_color ...................................................................................................980 ncurses_cbreak .....................................................................................................................981 ncurses_clear ........................................................................................................................981 ncurses_clrtobot....................................................................................................................982 ncurses_clrtoeol....................................................................................................................982 ncurses_color_set .................................................................................................................982 ncurses_curs_set ...................................................................................................................983 ncurses_def_prog_mode.......................................................................................................983 ncurses_def_shell_mode.......................................................................................................984 ncurses_define_key...............................................................................................................984 ncurses_delay_output ...........................................................................................................984 ncurses_delch .......................................................................................................................985 ncurses_deleteln ...................................................................................................................985 ncurses_delwin .....................................................................................................................986 ncurses_doupdate .................................................................................................................986 ncurses_echo.........................................................................................................................986 ncurses_echochar..................................................................................................................987 ncurses_end ..........................................................................................................................987 ncurses_erase........................................................................................................................987 ncurses_erasechar .................................................................................................................988 ncurses_filter.........................................................................................................................988 ncurses_flash.........................................................................................................................988 ncurses_flushinp ...................................................................................................................989 ncurses_getch .......................................................................................................................989 ncurses_getmouse.................................................................................................................990 ncurses_halfdelay .................................................................................................................991 ncurses_has_colors ...............................................................................................................991 ncurses_has_ic......................................................................................................................992 ncurses_has_il.......................................................................................................................992 ncurses_has_key ...................................................................................................................992 xliii
    • ncurses_hline ........................................................................................................................993ncurses_inch .........................................................................................................................993ncurses_init_color.................................................................................................................993ncurses_init_pair...................................................................................................................994ncurses_init...........................................................................................................................994ncurses_insch........................................................................................................................994ncurses_insdelln ...................................................................................................................995ncurses_insertln ....................................................................................................................995ncurses_insstr .......................................................................................................................996ncurses_instr .........................................................................................................................996ncurses_isendwin..................................................................................................................996ncurses_keyok ......................................................................................................................997ncurses_killchar....................................................................................................................997ncurses_longname ................................................................................................................997ncurses_mouseinterval..........................................................................................................998ncurses_mousemask .............................................................................................................998ncurses_move .....................................................................................................................1000ncurses_mvaddch................................................................................................................1000ncurses_mvaddchnstr..........................................................................................................1000ncurses_mvaddchstr............................................................................................................1001ncurses_mvaddnstr .............................................................................................................1001ncurses_mvaddstr ...............................................................................................................1002ncurses_mvcur....................................................................................................................1002ncurses_mvdelch ................................................................................................................1002ncurses_mvgetch ................................................................................................................1003ncurses_mvhline .................................................................................................................1003ncurses_mvinch ..................................................................................................................1003ncurses_mvvline .................................................................................................................1004ncurses_mvwaddstr ............................................................................................................1004ncurses_napms....................................................................................................................1004ncurses_newwin..................................................................................................................1005ncurses_nl ...........................................................................................................................1005ncurses_nocbreak ...............................................................................................................1005ncurses_noecho...................................................................................................................1006ncurses_nonl .......................................................................................................................1006ncurses_noqiflush ...............................................................................................................1006ncurses_noraw ....................................................................................................................1007ncurses_putp .......................................................................................................................1007ncurses_qiflush ...................................................................................................................1007ncurses_raw ........................................................................................................................1008ncurses_refresh ...................................................................................................................1008ncurses_resetty ...................................................................................................................1009ncurses_savetty ...................................................................................................................1009ncurses_scr_dump ..............................................................................................................1009ncurses_scr_init ..................................................................................................................1010ncurses_scr_restore.....................................